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 void
setUp()
Method setUp.void
testAntCall()
Method testAntCall.void
testAntLib()
Test if the antlib.xml resource correctly initialize custom tasks and types.void
testCurrentProject()
Method testCurrentProject.void
testFileOverride()
Method testFileOverride.void
testImport()
Method testImport.void
testImpossibleOverride()
Method testImpossibleOverride.void
testNonExistentDefaultTarget()
Method testNonExistentDefaultTarget.void
testNoParam()
Method testNoParam.void
testPrefixOverride()
Method testPrefixOverride.void
testSimpleBuild()
Method testSimpleBuild.void
testSimpleBuildWithGraphName()
Method testSimpleBuildWithGraphName.void
testSubant()
Method testSubant.void
testSuitability()
Method testSuitability.void
testTaskDefinitionFile()
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 IOException
Method testFileOverride.- Throws:
IOException
- if file comparator fails
-
testImpossibleOverride
public final void testImpossibleOverride()
Method testImpossibleOverride.
-
testPrefixOverride
public final void testPrefixOverride() throws IOException
Method testPrefixOverride.- Throws:
IOException
- if file comparator fails
-
testSimpleBuild
public final void testSimpleBuild() throws IOException
Method testSimpleBuild.- Throws:
IOException
- if file comparator fails
-
testSimpleBuildWithGraphName
public final void testSimpleBuildWithGraphName() throws IOException
Method testSimpleBuildWithGraphName.- Throws:
IOException
- if file comparator fails
-
testImport
public final void testImport() throws IOException
Method testImport.- Throws:
IOException
- if file comparator fails
-
testAntCall
public final void testAntCall() throws IOException
Method testAntCall.- Throws:
IOException
- if file comparator fails
-
testSubant
public final void testSubant() throws IOException
Method testSubant.- Throws:
IOException
- if file comparator fails
-
testNonExistentDefaultTarget
public final void testNonExistentDefaultTarget()
Method testNonExistentDefaultTarget.
-
-