net.sourceforge.pmd.ant
Class AbstractAntTestHelper

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.tools.ant.BuildFileTest
              extended by net.sourceforge.pmd.ant.AbstractAntTestHelper
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractAntTestHelper
extends org.apache.tools.ant.BuildFileTest

Quite an ugly classe, arguably useful for just 2 units test - nevertheless as there is a workaround that must be shared by both tests (PMD and CPD's) I felt compelled to move it to a single classes.

Author:
Romain Pelisse

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tools.ant.BuildFileTest
org.apache.tools.ant.BuildFileTest.AntOutputStream
 
Field Summary
protected  String antTestScriptFilename
           
 String mvnWorkaround
           
protected  String pathToTestScript
           
 
Fields inherited from class org.apache.tools.ant.BuildFileTest
project
 
Constructor Summary
AbstractAntTestHelper()
           
 
Method Summary
 void setUp()
           
 
Methods inherited from class org.apache.tools.ant.BuildFileTest
assertDebuglogContaining, assertLogContaining, assertLogNotContaining, assertOutputContaining, assertOutputContaining, assertOutputNotContaining, assertPropertyEquals, assertPropertySet, assertPropertyUnset, configureProject, configureProject, executeTarget, expectBuildException, expectBuildExceptionContaining, expectDebuglog, expectLog, expectLogContaining, expectLogNotContaining, expectOutput, expectOutputAndError, expectPropertySet, expectPropertySet, expectPropertyUnset, expectSpecificBuildException, getBuildException, getError, getFullLog, getLog, getOutput, getOutputDir, getProject, getProjectDir, getResource, tearDown
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pathToTestScript

protected String pathToTestScript

antTestScriptFilename

protected String antTestScriptFilename

mvnWorkaround

public String mvnWorkaround
Constructor Detail

AbstractAntTestHelper

public AbstractAntTestHelper()
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase


Copyright © 2002-2016 InfoEther. All Rights Reserved.