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