|
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.UseAssertFalseInsteadOfNegationRule
class UseAssertFalseInsteadOfNegationRule extends AbstractAstVisitorRule
In unit tests, if a condition is expected to be false then there is no sense using assertTrue with the negation operator. For instance, assertTrue(!condition) can always be simplified to assertFalse(condition)
Property Summary | |
---|---|
String |
applyToClassNames
|
Class |
astVisitorClass
|
String |
name
|
int |
priority
|
Property Detail |
---|
String applyToClassNames
Class astVisitorClass
String name
int priority
Groovy Documentation