1 package net.sourceforge.pmd.lang.java.rule.clone; 2 3 import net.sourceforge.pmd.testframework.SimpleAggregatorTst; 4 5 import org.junit.Before; 6 7 8 public class CloneRulesTest extends SimpleAggregatorTst { 9 10 private static final String RULESET = "java-clone"; 11 12 @Before 13 public void setUp() { 14 addRule(RULESET, "CloneMethodMustImplementCloneable"); 15 addRule(RULESET, "CloneThrowsCloneNotSupportedException"); 16 addRule(RULESET, "ProperCloneImplementation"); 17 } 18 19 public static junit.framework.Test suite() { 20 return new junit.framework.JUnit4TestAdapter(CloneRulesTest.class); 21 } 22 }