View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.jsp.rule.basic;
5   
6   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
7   
8   import org.junit.Before;
9   
10  
11  public class BasicRulesTest extends SimpleAggregatorTst {
12  
13      private static final String RULESET = "jsp-basic";
14  
15      @Before
16      public void setUp() {
17  	addRule(RULESET, "DuplicateJspImports");
18  	addRule(RULESET, "IframeMissingSrcAttribute");
19  	addRule(RULESET, "JspEncoding");
20  	addRule(RULESET, "NoClassAttribute");
21  	addRule(RULESET, "NoHtmlComments");
22  	addRule(RULESET, "NoInlineScript");
23  	addRule(RULESET, "NoInlineStyleInformation");
24  	addRule(RULESET, "NoJspForward");
25  	addRule(RULESET, "NoLongScripts");
26  	addRule(RULESET, "NoScriptlets");
27      }
28  
29      public static junit.framework.Test suite() {
30  	return new junit.framework.JUnit4TestAdapter(BasicRulesTest.class);
31      }
32  }