Package net.ggtools.grand.filters
Class IsolatedNodeFilterTest
- java.lang.Object
-
- org.apache.tools.ant.BuildFileTest
-
- net.ggtools.grand.utils.AbstractAntTester
-
- net.ggtools.grand.filters.IsolatedNodeFilterTest
-
public class IsolatedNodeFilterTest 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 IsolatedNodeFilterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Method setUp.void
testConnectedStartNode()
Process the full graph through an IsolatedNodeFilter and check that a connected node as start node is not removed.void
testFilter()
Process the full graph through an IsolatedNodeFilter and check the remaining nodes.void
testFullGraph()
Check the full graph completeness.-
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.
-
testFullGraph
public final void testFullGraph() throws net.ggtools.grand.exceptions.GrandException
Check the full graph completeness.- Throws:
net.ggtools.grand.exceptions.GrandException
- ifGraphProducer.getGraph()
fails
-
testFilter
public final void testFilter() throws net.ggtools.grand.exceptions.GrandException
Process the full graph through an IsolatedNodeFilter and check the remaining nodes. This test includes removing the project's start node.- Throws:
net.ggtools.grand.exceptions.GrandException
- ifGraphProducer.getGraph()
fails
-
testConnectedStartNode
public final void testConnectedStartNode() throws net.ggtools.grand.exceptions.GrandException
Process the full graph through an IsolatedNodeFilter and check that a connected node as start node is not removed.- Throws:
net.ggtools.grand.exceptions.GrandException
- ifGraphProducer.getGraph()
fails
-
-