Package org.pathvisio.libgpml.model
Class TestState
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.pathvisio.libgpml.model.TestState
- All Implemented Interfaces:
junit.framework.Test
public class TestState
extends junit.framework.TestCase
Test for
DataNode.State.
NB:
- For a state, getPathwayModel() is only null when outer class data node terminated
- For a state, getDataNode() will always return outer class data node.
- Author:
- finterly
-
Field Summary
Fields Modifier and Type Field Description private DataNoded1private PathwayModelpprivate DataNode.Statest1private DataNode.Statest2private DataNode.Statest3 -
Constructor Summary
Constructors Constructor Description TestState() -
Method Summary
Modifier and Type Method Description voidsetUp()voidtestRemoveDataNode()Tests removing a data node and its effect on states.voidtestRemoveState()Tests removing a state.Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
p
-
d1
-
st1
-
st2
-
st3
-
-
Constructor Details
-
TestState
public TestState()
-
-
Method Details
-
setUp
public void setUp() throws java.lang.Exception- Overrides:
setUpin classjunit.framework.TestCase- Throws:
java.lang.Exception
-
testRemoveState
public void testRemoveState()Tests removing a state. -
testRemoveDataNode
public void testRemoveDataNode()Tests removing a data node and its effect on states.
-