01: package test.net.sourceforge.pmd.rules.unusedcode;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class UnusedCodeRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("unusedcode", "UnusedFormalParameter");
12: addRule("unusedcode", "UnusedLocalVariable");
13: addRule("unusedcode", "UnusedPrivateField");
14: addRule("unusedcode", "UnusedPrivateMethod");
15: }
16:
17: public static junit.framework.Test suite() {
18: return new junit.framework.JUnit4TestAdapter(
19: UnusedCodeRulesTest.class);
20: }
21: }
|