View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java.rule.loggingjakartacommons;
5   
6   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
7   
8   import org.junit.Before;
9   
10  
11  public class LoggingJakartaCommonsRulesTest extends SimpleAggregatorTst {
12      
13      private static final String RULESET = "java-logging-jakarta-commons";
14  
15      @Before
16      public void setUp() {
17          addRule(RULESET, "ProperLogger");
18          addRule(RULESET, "UseCorrectExceptionLogging");
19          addRule(RULESET, "GuardDebugLogging");
20          addRule(RULESET, "GuardLogStatement");
21      }
22  
23      public static junit.framework.Test suite() {
24          return new junit.framework.JUnit4TestAdapter(LoggingJakartaCommonsRulesTest.class);
25      }
26  }