View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
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 testXML() {
16          executeTarget("testXML");
17          assertOutputContaining("Potentialy mistyped CDATA section with extra [ at beginning or ] at the end.");
18      }
19  }