Class JUnitUtil
java.lang.Object
org.codenarc.rule.junit.JUnitUtil
- All Implemented Interfaces:
groovy.lang.GroovyObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.MetaClassgetProperty(String property) invokeMethod(String method, Object arguments) protected static booleanisAssertCallWithConstantValue(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, Object value) protected static booleanisAssertCallWithLiteralValue(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, boolean literalEvaluatesToTrue) protected static booleanisAssertCallWithNonNullConstantValue(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName) protected static booleanisSetUpMethod(org.codehaus.groovy.ast.MethodNode methodNode) protected static booleanisTearDownMethod(org.codehaus.groovy.ast.MethodNode methodNode) static booleanisTestMethod(org.codehaus.groovy.ast.ASTNode node) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value)
-
Constructor Details
-
JUnitUtil
public JUnitUtil()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
-
getProperty
-
setProperty
-
isAssertCallWithConstantValue
-
isAssertCallWithNonNullConstantValue
protected static boolean isAssertCallWithNonNullConstantValue(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName) -
isAssertCallWithLiteralValue
protected static boolean isAssertCallWithLiteralValue(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, boolean literalEvaluatesToTrue) -
isSetUpMethod
protected static boolean isSetUpMethod(org.codehaus.groovy.ast.MethodNode methodNode) -
isTearDownMethod
protected static boolean isTearDownMethod(org.codehaus.groovy.ast.MethodNode methodNode) -
isTestMethod
public static boolean isTestMethod(org.codehaus.groovy.ast.ASTNode node)
-