Package org.pathvisio.libgpml.model
Class TestGraph
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.pathvisio.libgpml.model.TestGraph
- All Implemented Interfaces:
junit.framework.Test
public class TestGraph
extends junit.framework.TestCase
Test graph properties of a pathway model.
- Author:
- unknown
-
Field Summary
Fields Modifier and Type Field Description (package private) LineElement.LinePointend(package private) Interactionl(package private) DataNoden1(package private) DataNoden2(package private) PathwayModelp(package private) LineElement.LinePointstart -
Constructor Summary
Constructors Constructor Description TestGraph() -
Method Summary
Modifier and Type Method Description voidsetUp()voidtestRelative()test that the isRelative() method on mPoint properly reflects the fact that that the mPoint is linked to an object or not.voidtestRemove()test that, if a line points to a node, and the node is removed, the line is properly unlinked.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
-
l
-
n1
DataNode n1 -
n2
DataNode n2 -
start
LineElement.LinePoint start -
end
-
-
Constructor Details
-
TestGraph
public TestGraph()
-
-
Method Details
-
setUp
public void setUp()- Overrides:
setUpin classjunit.framework.TestCase
-
testRelative
public void testRelative()test that the isRelative() method on mPoint properly reflects the fact that that the mPoint is linked to an object or not. -
testRemove
public void testRemove()test that, if a line points to a node, and the node is removed, the line is properly unlinked.
-