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:

  1. For a state, getPathwayModel() is only null when outer class data node terminated
  2. 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

  • Constructor Details

    • TestState

      public TestState()
  • Method Details

    • setUp

      public void setUp() throws java.lang.Exception
      Overrides:
      setUp in class junit.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.