01: package test.net.sourceforge.pmd.rules.braces;
02:
03: import org.junit.Before;
04:
05: import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
06:
07: public class BracesRulesTest extends SimpleAggregatorTst {
08:
09: @Before
10: public void setUp() {
11: addRule("braces", "ForLoopsMustUseBraces");
12: addRule("braces", "IfElseStmtsMustUseBraces");
13: addRule("braces", "IfStmtsMustUseBraces");
14: addRule("braces", "WhileLoopsMustUseBraces");
15: }
16:
17: public static junit.framework.Test suite() {
18: return new junit.framework.JUnit4TestAdapter(
19: BracesRulesTest.class);
20: }
21: }
|