Groovy Documentation

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

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.junit.JUnitSetUpCallsSuperRule

class JUnitSetUpCallsSuperRule
extends AbstractAstVisitorRule

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

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