01: package test.net.sourceforge.pmd.rules.finalizers;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class FinalizersRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("finalizers", "AvoidCallingFinalize");
12: addRule("finalizers", "EmptyFinalizer");
13: addRule("finalizers", "FinalizeDoesNotCallSuperFinalize");
14: addRule("finalizers", "FinalizeOnlyCallsSuperFinalize");
15: addRule("finalizers", "FinalizeOverloaded");
16: addRule("finalizers", "FinalizeShouldBeProtected");
17: }
18:
19: public static junit.framework.Test suite() {
20: return new junit.framework.JUnit4TestAdapter(
21: FinalizersRulesTest.class);
22: }
23: }
|