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 DataNode
d1
private PathwayModel
p
private DataNode.State
st1
private DataNode.State
st2
private DataNode.State
st3
-
Constructor Summary
Constructors Constructor Description TestState()
-
Method Summary
Modifier and Type Method Description void
setUp()
void
testRemoveDataNode()
Tests removing a data node and its effect on states.void
testRemoveState()
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, toString
Methods 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:
setUp
in 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.
-