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 java.io.File;
7   
8   import org.junit.Test;
9   
10  /**
11   *
12   * @author Romain Pelisse <belaran@gmail.com>
13   *
14   */
15  public class CPDTaskTest extends AbstractAntTestHelper {
16  
17  	public CPDTaskTest() {
18  		super.antTestScriptFilename = "cpdtasktest.xml";
19  	}
20  
21      @Test
22      public void testBasic() {
23          executeTarget("testBasic");
24          // FIXME: This clearly needs to be improved - but I don't like to write test,
25          //        so feel free to contribute :)
26          assertTrue(new File("target/cpd.ant.tests").exists());
27      }
28  
29  }