01: package test.net.sourceforge.pmd.rules.loggingjava;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class LoggingJavaRulesTest extends SimpleAggregatorTst {
08:
09: @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(
19: LoggingJavaRulesTest.class);
20: }
21: }
|