org.codenarc.rule.junit
[Groovy] Class CoupledTestCaseRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.junit.CoupledTestCaseRule
class CoupledTestCaseRule
extends AbstractAstVisitorRule
This rule finds test cases that are coupled to other test cases, either by invoking static methods on another test case or by creating instances of another test case. If you require shared logic in test cases then extract that logic to a new class where it can properly be reused.
- Authors:
- Hamlet D'Arcy
- Version:
- \$Revision: 635 \$ - \$Date: 2011-03-05 14:33:52 -0500 (Sat, 05 Mar 2011) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
applyToClassNames
String applyToClassNames
-
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
Groovy Documentation