1 package test.net.sourceforge.pmd.rules.migrating;
2
3 import org.junit.Before;
4
5 import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
6
7 public class MigratingRulesTest extends SimpleAggregatorTst {
8
9 @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(MigratingRulesTest.class);
29 }
30 }