Package org.codenarc.rule.junit
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.MetaClass
getProperty
(String property) invokeMethod
(String method, Object arguments) protected static boolean
isAssertCallWithConstantValue
(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, Object value) protected static boolean
isAssertCallWithLiteralValue
(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, boolean literalEvaluatesToTrue) protected static boolean
isAssertCallWithNonNullConstantValue
(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName) protected static boolean
isSetUpMethod
(org.codehaus.groovy.ast.MethodNode methodNode) protected static boolean
isTearDownMethod
(org.codehaus.groovy.ast.MethodNode methodNode) static boolean
isTestMethod
(org.codehaus.groovy.ast.ASTNode node) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value)
-
Constructor Details
-
JUnitUtil
public JUnitUtil()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
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)
-