Package net.ggtools.grand.tasks
Class GrandTaskPropertyTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.tasks.GrandTaskPropertyTest
-
public class GrandTaskPropertyTest extends AbstractAntTester
Tests for GrandTask focused on properties.- 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 GrandTaskPropertyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Method setUp.void
testInheritAll()
Set the property in the calling project and create a graph with inheritall set.void
testInheritPrevailsOverProperty()
Set the property in the calling build script, sets inheritall to true and use a property element with a different value.void
testPropertyElement()
Use the nested element "property" to set antcall.target.void
testPropertySet()
Use the nested element "propertyset" to set antcall.target.void
testUndefinedProperty()
Run the test with an undefined property.-
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.
-
testUndefinedProperty
public final void testUndefinedProperty()
Run the test with an undefined property.
-
testInheritAll
public final void testInheritAll()
Set the property in the calling project and create a graph with inheritall set.
-
testPropertyElement
public final void testPropertyElement()
Use the nested element "property" to set antcall.target.
-
testPropertySet
public final void testPropertySet()
Use the nested element "propertyset" to set antcall.target.
-
testInheritPrevailsOverProperty
public final void testInheritPrevailsOverProperty()
Set the property in the calling build script, sets inheritall to true and use a property element with a different value. The inheritall property should prevail.
-
-