Class TestGraphLink

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.pathvisio.libgpml.model.TestGraphLink
All Implemented Interfaces:
junit.framework.Test

public class TestGraphLink
extends junit.framework.TestCase
For testing methods for elementRef:

Tests:

  1. linking point to shaped pathway element.
  2. linking point to anchor or line pathway element.
Author:
finterly
  • Field Summary

    Fields
    Modifier and Type Field Description
    private Interaction i  
    private Interaction i2  
    private PathwayModel p  
  • Constructor Summary

    Constructors
    Constructor Description
    TestGraphLink()  
  • Method Summary

    Modifier and Type Method Description
    void setUp()  
    void testLinkToAnchor()
    Test linking of start of interaction i to anchor of interaction i2.
    void testLinkToShapedElement()
    Tests linking of interaction i to datanodes d and d2.

    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

    • TestGraphLink

      public TestGraphLink()
  • Method Details

    • setUp

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

      public void testLinkToShapedElement()
      Tests linking of interaction i to datanodes d and d2.

      To look something like this:

                    d1       d2            
                   ____      ____
                  |    |____|    |   
                  |____| i  |____|
       
    • testLinkToAnchor

      public void testLinkToAnchor()
      Test linking of start of interaction i to anchor of interaction i2.

      To look something like this:

                  |____  
                  |