net.walend.digraph.test
Class GEDigraphTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--net.walend.toolkit.junit.TestCase
|
+--net.walend.digraph.test.GEDigraphTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- GEPathTest, HashGEDigraphTest, LMGEDigraphTest, MatrixGEDigraphTest, MutableGEDigraphTest
- public abstract class GEDigraphTest
- extends net.walend.toolkit.junit.TestCase
- Since:
- 20010812
- Author:
- David Walend dfw1@cornell.edu
Fields inherited from class junit.framework.TestCase |
|
Method Summary |
protected abstract GEDigraph |
getEmptyTestGEDigraph()
|
protected abstract MutableGEDigraph |
getEmptyTestMutableGEDigraph()
|
protected abstract GEDigraph |
getTestGEDigraph()
|
protected abstract MutableGEDigraph |
getTestMutableGEDigraph()
|
protected void |
testContainsEdge(GEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
boolean expected,
boolean expectException)
|
protected void |
testContainsEdgeAllWays(GEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
boolean expected,
boolean expectException)
Deprecated. |
protected void |
testContainsGEDigraph(GEDigraph digraph,
GEDigraph containedGEDigraph,
boolean expected)
|
protected void |
testContainsNode(GEDigraph digraph,
java.lang.Object node,
boolean expected)
|
protected void |
testContainsNodes(GEDigraph digraph,
java.util.Set nodes,
boolean expected)
|
void |
testCopyConstructor()
|
protected void |
testCountInboundEdges(GEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
|
protected void |
testCountOutboundEdges(GEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
|
protected void |
testEdgeCount(GEDigraph digraph,
int expected)
|
protected void |
testEdgeNodeIterator(GEDigraph digraph)
|
void |
testGEDigraphAlgebraContainsGEDigraph()
|
void |
testGEDigraphAlgebraIntersectGEDigraphs()
|
void |
testGEDigraphAlgebraSameGEDigraphs()
|
void |
testGEDigraphAlgebraUnionGEDigraphs()
|
protected void |
testGetFromNodes(GEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
|
protected void |
testGetNodes(GEDigraph digraph,
java.util.Set expected)
|
protected void |
testGetToNodes(GEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
|
void |
testImmutable(java.lang.Object ob,
boolean immutable)
|
protected void |
testIsEdgeFree(GEDigraph digraph,
boolean expected)
|
protected void |
testIsEmpty(GEDigraph digraph,
boolean expected)
|
protected void |
testNodeCount(GEDigraph digraph,
int expected)
|
protected void |
testNodeIterator(GEDigraph digraph,
java.util.Set expected)
|
void |
testQueriesOnEmpty()
|
void |
testQueriesOnTestGEDigraph()
|
protected void |
testSameGEDigraphAs(GEDigraph digraph,
GEDigraph containedGEDigraph,
boolean expected)
|
void |
testSerialization()
|
protected void |
testToString(GEDigraph digraph)
|
Methods inherited from class net.walend.toolkit.junit.TestCase |
fail, fail |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GEDigraphTest
public GEDigraphTest(java.lang.String testName)
getEmptyTestGEDigraph
protected abstract GEDigraph getEmptyTestGEDigraph()
getTestGEDigraph
protected abstract GEDigraph getTestGEDigraph()
getTestMutableGEDigraph
protected abstract MutableGEDigraph getTestMutableGEDigraph()
getEmptyTestMutableGEDigraph
protected abstract MutableGEDigraph getEmptyTestMutableGEDigraph()
testCopyConstructor
public void testCopyConstructor()
testNodeCount
protected void testNodeCount(GEDigraph digraph,
int expected)
testEdgeCount
protected void testEdgeCount(GEDigraph digraph,
int expected)
testIsEmpty
protected void testIsEmpty(GEDigraph digraph,
boolean expected)
testIsEdgeFree
protected void testIsEdgeFree(GEDigraph digraph,
boolean expected)
testContainsNode
protected void testContainsNode(GEDigraph digraph,
java.lang.Object node,
boolean expected)
testContainsEdge
protected void testContainsEdge(GEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
boolean expected,
boolean expectException)
testContainsEdgeAllWays
protected void testContainsEdgeAllWays(GEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
boolean expected,
boolean expectException)
- Deprecated.
testCountInboundEdges
protected void testCountInboundEdges(GEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
testCountOutboundEdges
protected void testCountOutboundEdges(GEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
testGetToNodes
protected void testGetToNodes(GEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
testGetFromNodes
protected void testGetFromNodes(GEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
testNodeIterator
protected void testNodeIterator(GEDigraph digraph,
java.util.Set expected)
testEdgeNodeIterator
protected void testEdgeNodeIterator(GEDigraph digraph)
testGetNodes
protected void testGetNodes(GEDigraph digraph,
java.util.Set expected)
testContainsNodes
protected void testContainsNodes(GEDigraph digraph,
java.util.Set nodes,
boolean expected)
testContainsGEDigraph
protected void testContainsGEDigraph(GEDigraph digraph,
GEDigraph containedGEDigraph,
boolean expected)
testSameGEDigraphAs
protected void testSameGEDigraphAs(GEDigraph digraph,
GEDigraph containedGEDigraph,
boolean expected)
testToString
protected void testToString(GEDigraph digraph)
testSerialization
public void testSerialization()
testQueriesOnEmpty
public void testQueriesOnEmpty()
testQueriesOnTestGEDigraph
public void testQueriesOnTestGEDigraph()
testGEDigraphAlgebraContainsGEDigraph
public void testGEDigraphAlgebraContainsGEDigraph()
testGEDigraphAlgebraSameGEDigraphs
public void testGEDigraphAlgebraSameGEDigraphs()
testGEDigraphAlgebraIntersectGEDigraphs
public void testGEDigraphAlgebraIntersectGEDigraphs()
testGEDigraphAlgebraUnionGEDigraphs
public void testGEDigraphAlgebraUnionGEDigraphs()
testImmutable
public void testImmutable(java.lang.Object ob,
boolean immutable)
Copyright (c) 2001, 2002, David Walend