01: package test.net.sourceforge.pmd.rules.j2ee;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class J2EERulesTest extends SimpleAggregatorTst {
08:
09: @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(
24: J2EERulesTest.class);
25: }
26: }
|