|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.junit.JUnitTestMethodWithoutAssertRule
class JUnitTestMethodWithoutAssertRule extends AbstractAstVisitorRule
This rule searches for test methods that do not contain assert statements. Either the test method is missing assert statements, which is an error, or the test method contains custom assert statements that do not follow a proper assert naming convention. Test methods are defined as public void methods that begin with the work test or have a
Property Summary | |
---|---|
String |
applyToClassNames
|
String |
assertMethodPatterns
|
String |
name
|
int |
priority
|
Method Summary | |
---|---|
AstVisitor
|
getAstVisitor()
|
Property Detail |
---|
String applyToClassNames
String assertMethodPatterns
String name
int priority
Method Detail |
---|
@Override AstVisitor getAstVisitor()
Groovy Documentation