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