Package net.ggtools.grand.ant
Class AntProjectTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.ant.AntProjectTest
-
- Direct Known Subclasses:
AntProjectFromFileTest
public class AntProjectTest extends AbstractAntTester
- Author:
- Christophe Labouisse
-
-
Field Summary
Fields Modifier and Type Field Description protected net.ggtools.grand.ant.AntProject
antProject
Field antProject.protected net.ggtools.grand.graph.Graph
graph
Field graph.-
Fields inherited from class net.ggtools.grand.utils.AbstractAntTester
JUNIT_TEST_NAME, TEMP_FILE_PROP, TESTCASES_DIR, watchman
-
Fields inherited from class org.apache.tools.ant.BuildFileTest
project
-
-
Constructor Summary
Constructors Constructor Description AntProjectTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createGraph()
Method createGraph.protected String
getTestBuildFileName()
Method getTestBuildFileName.void
setUp()
Method setUp.void
testAnt()
Method testAnt.void
testAntCall()
Method testAntCall.void
testAntCallWithTargetElements()
Method testAntCallWithTargetElements.void
testAntCallWithUndefinedProperty()
Run a graph on a file including an antcall whose target is based on a property.void
testAntCallWithUndefinedTask()
Run a graph on a file including an undefined task.void
testAntNoTargetDifferentFile()
Method testAntNoTargetDifferentFile.void
testAntNoTargetSameFile()
Method testAntNoTargetSameFile.void
testAntWithTargetElements()
Method testAntWithTargetElements.void
testIfCondition()
Method testIfCondition.void
testNestedAnt()
Test if the nested tasks are found (ticket #29).void
testRunTarget()
Method testRunTarget.void
testSubant()
Test the subant task.void
testUnlessCondition()
Method testUnlessCondition.-
Methods inherited from class net.ggtools.grand.utils.AbstractAntTester
assertFullLogContaining, assertTempFileMatchExpected, expectFullLogContaining
-
Methods inherited from class org.apache.tools.ant.BuildFileTest
assertLogContaining, assertPropertyEquals, assertPropertySet, assertPropertyUnset, configureProject, configureProject, executeTarget, expectBuildException, expectBuildExceptionContaining, expectDebuglog, expectLog, expectLogContaining, expectOutput, expectOutputAndError, expectPropertySet, expectPropertySet, expectPropertyUnset, expectSpecificBuildException, getBuildException, getError, getFullLog, getLog, getOutput, getProject, getProjectDir, getResource
-
-
-
-
Method Detail
-
testAnt
public final void testAnt()
Method testAnt.
-
testAntCall
public final void testAntCall()
Method testAntCall.
-
testAntCallWithTargetElements
public final void testAntCallWithTargetElements()
Method testAntCallWithTargetElements.
-
testAntCallWithUndefinedProperty
public final void testAntCallWithUndefinedProperty()
Run a graph on a file including an antcall whose target is based on a property.
-
testAntCallWithUndefinedTask
public final void testAntCallWithUndefinedTask()
Run a graph on a file including an undefined task.
-
testAntNoTargetDifferentFile
public final void testAntNoTargetDifferentFile()
Method testAntNoTargetDifferentFile.
-
testAntNoTargetSameFile
public final void testAntNoTargetSameFile()
Method testAntNoTargetSameFile.
-
testAntWithTargetElements
public final void testAntWithTargetElements()
Method testAntWithTargetElements.
-
testIfCondition
public final void testIfCondition()
Method testIfCondition.
-
testNestedAnt
public final void testNestedAnt()
Test if the nested tasks are found (ticket #29).
-
testRunTarget
public final void testRunTarget()
Method testRunTarget.
-
testSubant
public final void testSubant()
Test the subant task.
-
testUnlessCondition
public final void testUnlessCondition()
Method testUnlessCondition.
-
getTestBuildFileName
protected final String getTestBuildFileName()
Method getTestBuildFileName.- Returns:
- String
-
setUp
public final void setUp()
Method setUp.
-
createGraph
protected void createGraph()
Method createGraph.
-
-