Package net.ggtools.grand.filters
Class ToNodeFilterTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.filters.ToNodeFilterTest
-
public class ToNodeFilterTest 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 ToNodeFilterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Method setUp.voidtestConnectedStartNode()Process log4j 1.2.8 build.xml and from the "build" node and check if we get what we want.voidtestNonExistentNode()Process the build file, trying to filter from an non existent node.voidtestNotFilteredStartNode()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.GrandExceptionProcess 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.GrandExceptionProcess 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.GrandExceptionProcess the build file, trying to filter from an non existent node.- Throws:
net.ggtools.grand.exceptions.GrandException- ifGraphProducer.getGraph()fails
-
-