01: package test.net.sourceforge.pmd.rules.migrating;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class MigratingRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("migrating", "AvoidAssertAsIdentifier");
12: addRule("migrating", "AvoidEnumAsIdentifier");
13: addRule("migrating", "ByteInstantiation");
14: addRule("migrating", "IntegerInstantiation");
15: addRule("migrating", "JUnit4SuitesShouldUseSuiteAnnotation");
16: addRule("migrating", "JUnit4TestShouldUseAfterAnnotation");
17: addRule("migrating", "JUnit4TestShouldUseBeforeAnnotation");
18: addRule("migrating", "JUnit4TestShouldUseTestAnnotation");
19: addRule("migrating", "JUnitUseExpected");
20: addRule("migrating", "LongInstantiation");
21: addRule("migrating", "ReplaceEnumerationWithIterator");
22: addRule("migrating", "ReplaceHashtableWithMap");
23: addRule("migrating", "ReplaceVectorWithList");
24: addRule("migrating", "ShortInstantiation");
25: }
26:
27: public static junit.framework.Test suite() {
28: return new junit.framework.JUnit4TestAdapter(
29: MigratingRulesTest.class);
30: }
31: }
|