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