Package net.ggtools.grand.filters
Class NodeRemoverFilterTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.filters.NodeRemoverFilterTest
-
public class NodeRemoverFilterTest 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 NodeRemoverFilterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Method setUp.voidtestNonExistentNode()Process the build file, trying to removed a non existent node.voidtestNonNode()Process the build file, trying to removed with an empty list.voidtestOneNode()Process log4j 1.2.8 build.xml and remove the "init" node.voidtestSeveralNodes()Process log4j 1.2.8 build.xml and remove the "init", "build" and jar nodes.-
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.
-
testNonExistentNode
public final void testNonExistentNode() throws net.ggtools.grand.exceptions.GrandExceptionProcess the build file, trying to removed a non existent node.- Throws:
net.ggtools.grand.exceptions.GrandException- ifGraphProducer.getGraph()orGraphProducer.getGraph()fails
-
testNonNode
public final void testNonNode() throws net.ggtools.grand.exceptions.GrandExceptionProcess the build file, trying to removed with an empty list.- Throws:
net.ggtools.grand.exceptions.GrandException- ifGraphProducer.getGraph()orGraphProducer.getGraph()fails
-
testOneNode
public final void testOneNode() throws net.ggtools.grand.exceptions.GrandExceptionProcess log4j 1.2.8 build.xml and remove the "init" node.- Throws:
net.ggtools.grand.exceptions.GrandException- ifGraphProducer.getGraph()fails
-
testSeveralNodes
public final void testSeveralNodes() throws net.ggtools.grand.exceptions.GrandExceptionProcess log4j 1.2.8 build.xml and remove the "init", "build" and jar nodes.- Throws:
net.ggtools.grand.exceptions.GrandException- ifGraphProducer.getGraph()fails
-
-