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