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.LinePoint
end
(package private) Interaction
l
(package private) DataNode
n1
(package private) DataNode
n2
(package private) PathwayModel
p
(package private) LineElement.LinePoint
start
-
Constructor Summary
Constructors Constructor Description TestGraph()
-
Method Summary
Modifier and Type Method Description void
setUp()
void
testRelative()
test that the isRelative() method on mPoint properly reflects the fact that that the mPoint is linked to an object or not.void
testRemove()
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, toString
Methods 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:
setUp
in 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.
-