01: package test.net.sourceforge.pmd.rules.controversial;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class ControversialRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("controversial", "AssignmentInOperand");
12: addRule("controversial", "AvoidFinalLocalVariable");
13: addRule("controversial", "AvoidUsingNativeCode");
14: addRule("controversial", "AvoidUsingShortType");
15: addRule("controversial", "AvoidUsingVolatile");
16: addRule("controversial", "AtLeastOneConstructor");
17: addRule("controversial", "AvoidFinalLocalVariable");
18: addRule("controversial", "BooleanInversion");
19: addRule("controversial", "CallSuperInConstructor");
20: addRule("controversial", "DataflowAnomalyAnalysis");
21: addRule("controversial", "DefaultPackage");
22: addRule("controversial", "DontImportSun");
23: addRule("controversial", "DoNotCallGarbageCollectionExplicitly");
24: addRule("controversial", "NullAssignment");
25: addRule("controversial", "OnlyOneReturn");
26: addRule("controversial", "SuspiciousOctalEscape");
27: addRule("controversial", "UnnecessaryConstructor");
28: addRule("controversial", "UnnecessaryParentheses");
29: addRule("controversial", "UnusedModifier");
30: }
31:
32: public static junit.framework.Test suite() {
33: return new junit.framework.JUnit4TestAdapter(
34: ControversialRulesTest.class);
35: }
36: }
|