1 package net.sourceforge.pmd.lang.java.rule.j2ee; 2 3 import net.sourceforge.pmd.testframework.SimpleAggregatorTst; 4 5 import org.junit.Before; 6 7 8 public class J2EERulesTest extends SimpleAggregatorTst { 9 10 private static final String RULESET = "java-j2ee"; 11 12 @Before 13 public void setUp() { 14 addRule(RULESET, "DoNotCallSystemExit"); 15 addRule(RULESET, "DoNotUseThreads"); 16 addRule(RULESET, "LocalHomeNamingConvention"); 17 addRule(RULESET, "LocalInterfaceSessionNamingConvention"); 18 addRule(RULESET, "MDBAndSessionBeanNamingConvention"); 19 addRule(RULESET, "RemoteInterfaceNamingConvention"); 20 addRule(RULESET, "RemoteSessionInterfaceNamingConvention"); 21 addRule(RULESET, "StaticEJBFieldShouldBeFinal"); 22 addRule(RULESET, "UseProperClassLoader"); 23 } 24 25 public static junit.framework.Test suite() { 26 return new junit.framework.JUnit4TestAdapter(J2EERulesTest.class); 27 } 28 }