Package net.ggtools.grand.tasks
Class GrandTaskTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.tasks.GrandTaskTest
-
public class GrandTaskTest extends AbstractAntTester
Tests for GrandTask.- Author:
- Christophe Labouisse
-
-
Field Summary
-
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 GrandTaskTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Method setUp.voidtestAntCall()Method testAntCall.voidtestAntLib()Test if the antlib.xml resource correctly initialize custom tasks and types.voidtestCurrentProject()Method testCurrentProject.voidtestFileOverride()Method testFileOverride.voidtestImport()Method testImport.voidtestImpossibleOverride()Method testImpossibleOverride.voidtestNonExistentDefaultTarget()Method testNonExistentDefaultTarget.voidtestNoParam()Method testNoParam.voidtestPrefixOverride()Method testPrefixOverride.voidtestSimpleBuild()Method testSimpleBuild.voidtestSimpleBuildWithGraphName()Method testSimpleBuildWithGraphName.voidtestSubant()Method testSubant.voidtestSuitability()Method testSuitability.voidtestTaskDefinitionFile()Tests if the task.properties resource file creates the grand test.-
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
-
setUp
public final void setUp()
Method setUp.
-
testSuitability
public final void testSuitability()
Method testSuitability.
-
testTaskDefinitionFile
public final void testTaskDefinitionFile()
Tests if the task.properties resource file creates the grand test.
-
testAntLib
public final void testAntLib()
Test if the antlib.xml resource correctly initialize custom tasks and types.
-
testNoParam
public final void testNoParam()
Method testNoParam.
-
testCurrentProject
public final void testCurrentProject()
Method testCurrentProject.
-
testFileOverride
public final void testFileOverride() throws IOExceptionMethod testFileOverride.- Throws:
IOException- if file comparator fails
-
testImpossibleOverride
public final void testImpossibleOverride()
Method testImpossibleOverride.
-
testPrefixOverride
public final void testPrefixOverride() throws IOExceptionMethod testPrefixOverride.- Throws:
IOException- if file comparator fails
-
testSimpleBuild
public final void testSimpleBuild() throws IOExceptionMethod testSimpleBuild.- Throws:
IOException- if file comparator fails
-
testSimpleBuildWithGraphName
public final void testSimpleBuildWithGraphName() throws IOExceptionMethod testSimpleBuildWithGraphName.- Throws:
IOException- if file comparator fails
-
testImport
public final void testImport() throws IOExceptionMethod testImport.- Throws:
IOException- if file comparator fails
-
testAntCall
public final void testAntCall() throws IOExceptionMethod testAntCall.- Throws:
IOException- if file comparator fails
-
testSubant
public final void testSubant() throws IOExceptionMethod testSubant.- Throws:
IOException- if file comparator fails
-
testNonExistentDefaultTarget
public final void testNonExistentDefaultTarget()
Method testNonExistentDefaultTarget.
-
-