Groovy Documentation

org.codenarc.rule.junit
Class JUnitTearDownCallsSuperRule

java.lang.Object
  org.codenarc.rule.AbstractRule
      org.codenarc.rule.AbstractAstVisitorRule
          org.codenarc.rule.junit.JUnitTearDownCallsSuperRule

class JUnitTearDownCallsSuperRule
extends AbstractAstVisitorRule

Rule that checks that if the JUnit tearDown() method is defined, that it includes a call to super.tearDown().

This rule sets the default value of applyToFilesMatching to only match source code file paths ending in 'Test.groovy' or 'Tests.groovy'.

author:
Chris Mair
version:
$Revision: 163 $ - $Date: 2009-05-23 19:41:24 -0400 (Sat, 23 May 2009) $


Property Summary
String applyToClassNames

Class astVisitorClass

String name

int priority

 
Constructor Summary
JUnitTearDownCallsSuperRule()

 
Method Summary
 
Methods inherited from class AbstractAstVisitorRule
shouldApplyThisRuleTo
 
Methods inherited from class AbstractRule
applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport
 

Property Detail

applyToClassNames

String applyToClassNames


astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 
Constructor Detail

JUnitTearDownCallsSuperRule

JUnitTearDownCallsSuperRule()


 

Groovy Documentation