Package net.ggtools.grand.filters
Class FromNodeFilterTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.filters.FromNodeFilterTest
-
public class FromNodeFilterTest extends AbstractAntTester
- 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 FromNodeFilterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Method setUp.void
testConnectedStartNode()
Process log4j 1.2.8 build.xml and from the "build" node and check if we get what we want.void
testNonExistentNode()
Process the build file, trying to filter from an non existent node.void
testNotFilteredStartNode()
Process a modified version of log4j 1.2.8 build.xml featuring the "build" target as default.-
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.
-
testConnectedStartNode
public final void testConnectedStartNode() throws net.ggtools.grand.exceptions.GrandException
Process log4j 1.2.8 build.xml and from the "build" node and check if we get what we want.- Throws:
net.ggtools.grand.exceptions.GrandException
- ifGraphProducer.getGraph()
fails
-
testNotFilteredStartNode
public final void testNotFilteredStartNode() throws net.ggtools.grand.exceptions.GrandException
Process a modified version of log4j 1.2.8 build.xml featuring the "build" target as default. Check if the project start node has not been filtered out.- Throws:
net.ggtools.grand.exceptions.GrandException
- ifGraphProducer.getGraph()
fails
-
testNonExistentNode
public final void testNonExistentNode() throws net.ggtools.grand.exceptions.GrandException
Process the build file, trying to filter from an non existent node.- Throws:
net.ggtools.grand.exceptions.GrandException
- ifGraphProducer.getGraph()
fails
-
-