1
2
3
4 package net.sourceforge.pmd.ant;
5
6 import org.junit.Test;
7
8 public class PMDTaskTest extends AbstractAntTestHelper {
9
10 public PMDTaskTest() {
11 super.antTestScriptFilename = "pmdtasktest.xml";
12 }
13
14 @Test
15 public void testEcmascript() {
16 executeTarget("testEcmascript");
17 assertOutputContaining("A 'return', 'break', 'continue', or 'throw' statement should be the last in a block.");
18 assertOutputContaining("Avoid using global variables");
19 assertOutputContaining("Use ===/!== to compare with true/false or Numbers");
20 }
21 }