Groovy Documentation

groovy.org.codenarc.rule.junit
[Groovy] Class JUnitTearDownCallsSuperRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.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'.

Authors:
Chris Mair
Hamlet D'Arcy


Property Summary
String applyToClassNames

Class astVisitorClass

String name

int priority

 

Property Detail

applyToClassNames

String applyToClassNames


astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation