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