|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.junit.JUnitUtil
class JUnitUtil
Utility methods for JUnit rule classes. This class is not intended for general use.
| Method Summary | |
|---|---|
protected static boolean
|
isAssertConstantValueCall(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, Object value)
Return true if the MethodCallExpression represents a JUnit assert method call with the specified method name and constant argument value. |
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)
Tells you if an ASTNode is a test MethodNode. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Method Detail |
|---|
protected static boolean isAssertConstantValueCall(org.codehaus.groovy.ast.expr.MethodCallExpression methodCall, String methodName, Object value)
methodCall - - the MethodCallExpression of the method callmethodName - - the name of the methodvalue - - the argument value
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)
node
- the node to analyze
Groovy Documentation