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.AntProjectantProjectField antProject.protected net.ggtools.grand.graph.GraphgraphField 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 voidcreateGraph()Method createGraph.protected StringgetTestBuildFileName()Method getTestBuildFileName.voidsetUp()Method setUp.voidtestAnt()Method testAnt.voidtestAntCall()Method testAntCall.voidtestAntCallWithTargetElements()Method testAntCallWithTargetElements.voidtestAntCallWithUndefinedProperty()Run a graph on a file including an antcall whose target is based on a property.voidtestAntCallWithUndefinedTask()Run a graph on a file including an undefined task.voidtestAntNoTargetDifferentFile()Method testAntNoTargetDifferentFile.voidtestAntNoTargetSameFile()Method testAntNoTargetSameFile.voidtestAntWithTargetElements()Method testAntWithTargetElements.voidtestIfCondition()Method testIfCondition.voidtestNestedAnt()Test if the nested tasks are found (ticket #29).voidtestRunTarget()Method testRunTarget.voidtestSubant()Test the subant task.voidtestUnlessCondition()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.
-
-