View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java.rule.j2ee;
5   
6   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
7   
8   public class J2EERulesTest extends SimpleAggregatorTst {
9   
10      private static final String RULESET = "java-j2ee";
11  
12      @Override
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  }