Class Test

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.pathvisio.libgpml.model.Test
All Implemented Interfaces:
java.util.EventListener, junit.framework.Test, PathwayModelListener, PathwayObjectListener

public class Test
extends junit.framework.TestCase
implements PathwayModelListener, PathwayObjectListener
Tests for libgpml model classes.
Author:
unknown
  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) PathwayModel data  
    (package private) Interaction l  
    (package private) DataNode o  
    (package private) java.util.List<PathwayModelEvent> received  
    (package private) java.util.List<PathwayObjectEvent> receivedElementEvents  
  • Constructor Summary

    Constructors
    Constructor Description
    Test()  
  • Method Summary

    Modifier and Type Method Description
    void gmmlObjectModified​(PathwayModelEvent e)  
    void gmmlObjectModified​(PathwayObjectEvent e)
    Notifies of pathway object changes.
    void pathwayModified​(PathwayModelEvent e)
    Notifies of pathway model modified.
    void setUp()  
    void testColor()  
    void testFields()  
    void testMappInfo()
    Test that there is one and only one Pathway object
    void testParent()  
    void testRef()
    Test graphRef's and graphId's
    void testRef2()  
    void testWrongFormat()  
    void testXRefEquals()
    test that Xref and XrefWithSymbol obey the equals contract

    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

    • Test

      public Test()
  • Method Details

    • setUp

      public void setUp()
      Overrides:
      setUp in class junit.framework.TestCase
    • testFields

      public void testFields()
    • testColor

      public void testColor()
    • testParent

      public void testParent()
    • testRef

      public void testRef()
      Test graphRef's and graphId's
    • testXRefEquals

      public void testXRefEquals()
      test that Xref and XrefWithSymbol obey the equals contract
    • testRef2

      public void testRef2()
    • testWrongFormat

      public void testWrongFormat()
    • testMappInfo

      public void testMappInfo()
      Test that there is one and only one Pathway object
    • gmmlObjectModified

      public void gmmlObjectModified​(PathwayModelEvent e)
    • gmmlObjectModified

      public void gmmlObjectModified​(PathwayObjectEvent e)
      Description copied from interface: PathwayObjectListener
      Notifies of pathway object changes.
      Specified by:
      gmmlObjectModified in interface PathwayObjectListener
      Parameters:
      e - the pathway object event.
    • pathwayModified

      public void pathwayModified​(PathwayModelEvent e)
      Description copied from interface: PathwayModelListener
      Notifies of pathway model modified.
      Specified by:
      pathwayModified in interface PathwayModelListener
      Parameters:
      e - the pathway model event.