View Javadoc

1   package net.sourceforge.pmd.lang.java.rule.loggingjava;
2   
3   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
4   
5   import org.junit.Before;
6   
7   
8   public class LoggingJavaRulesTest extends SimpleAggregatorTst {
9       
10      private static final String RULESET = "java-logging-java";
11  
12      @Before
13      public void setUp() {
14          addRule(RULESET, "AvoidPrintStackTrace");
15          addRule(RULESET, "LoggerIsNotStaticFinal");
16          addRule(RULESET, "MoreThanOneLogger");
17          addRule(RULESET, "SystemPrintln");
18      }
19  
20      public static junit.framework.Test suite() {
21          return new junit.framework.JUnit4TestAdapter(LoggingJavaRulesTest.class);
22      }
23  }