net.walend.digraph.test
Class UEDigraphTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--net.walend.toolkit.junit.TestCase
|
+--net.walend.digraph.test.UEDigraphTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- HashUEDigraphTest, MatrixUEDigraphTest, MutableUEDigraphTest, UEPathTest
- public abstract class UEDigraphTest
- extends net.walend.toolkit.junit.TestCase
- Since:
- 20010621
- Author:
- David Walend dfw1@cornell.edu
Fields inherited from class junit.framework.TestCase |
|
Method Summary |
protected abstract MutableUEDigraph |
getEmptyTestMutableUEDigraph()
|
protected abstract UEDigraph |
getEmptyTestUEDigraph()
|
protected abstract MutableUEDigraph |
getTestMutableUEDigraph()
|
protected abstract UEDigraph |
getTestUEDigraph()
|
protected void |
testContainsEdge(UEDigraph digraph,
java.lang.Object edge,
boolean expected)
|
protected void |
testContainsEdge(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
boolean expected,
boolean expectException)
|
protected void |
testContainsEdge(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
java.lang.Object edge,
boolean expected,
boolean expectException)
|
protected void |
testContainsEdgeAllWays(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
java.lang.Object edge,
boolean expected,
boolean expectException)
|
protected void |
testContainsEdges(UEDigraph digraph,
java.util.Set edges,
boolean expected)
|
protected void |
testContainsNode(UEDigraph digraph,
java.lang.Object node,
boolean expected)
|
protected void |
testContainsNodes(UEDigraph digraph,
java.util.Set nodes,
boolean expected)
|
protected void |
testContainsUEDigraph(UEDigraph digraph,
UEDigraph containedUEDigraph,
boolean expected)
|
void |
testCopyConstructor()
|
protected void |
testCountInboundEdges(UEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
|
protected void |
testCountOutboundEdges(UEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
|
protected void |
testEdgeCount(UEDigraph digraph,
int expected)
|
protected void |
testEdgeIterator(UEDigraph digraph)
|
protected void |
testGetEdge(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
java.lang.Object expected,
boolean expectException)
|
protected void |
testGetEdges(UEDigraph digraph,
java.util.Set expected)
|
protected void |
testGetFromNode(UEDigraph digraph,
java.lang.Object edge,
java.lang.Object expected,
boolean expectException)
|
protected void |
testGetFromNodes(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
|
protected void |
testGetInboundEdges(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
|
protected void |
testGetNodes(UEDigraph digraph,
java.util.Set expected)
|
protected void |
testGetOutboundEdges(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
|
protected void |
testGetToNode(UEDigraph digraph,
java.lang.Object edge,
java.lang.Object expected,
boolean expectException)
|
protected void |
testGetToNodes(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
|
void |
testImmutable(java.lang.Object ob,
boolean immutable)
|
protected void |
testIsEdgeFree(UEDigraph digraph,
boolean expected)
|
protected void |
testIsEmpty(UEDigraph digraph,
boolean expected)
|
protected void |
testNodeCount(UEDigraph digraph,
int expected)
|
protected void |
testNodeIterator(UEDigraph digraph,
java.util.Set expected)
|
void |
testQueriesOnEmpty()
|
void |
testQueriesOnTestUEDigraph()
|
protected void |
testSameUEDigraphAs(UEDigraph digraph,
UEDigraph containedUEDigraph,
boolean expected)
|
void |
testSerialization()
|
protected void |
testToString(UEDigraph digraph)
|
void |
testUEDigraphAlgebraContainsUEDigraph()
|
void |
testUEDigraphAlgebraIntersectUEDigraphs()
|
void |
testUEDigraphAlgebraSameUEDigraphs()
|
void |
testUEDigraphAlgebraUnionUEDigraphs()
|
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 |
UEDigraphTest
public UEDigraphTest(java.lang.String testName)
getEmptyTestUEDigraph
protected abstract UEDigraph getEmptyTestUEDigraph()
getTestUEDigraph
protected abstract UEDigraph getTestUEDigraph()
getTestMutableUEDigraph
protected abstract MutableUEDigraph getTestMutableUEDigraph()
getEmptyTestMutableUEDigraph
protected abstract MutableUEDigraph getEmptyTestMutableUEDigraph()
testCopyConstructor
public void testCopyConstructor()
testToString
protected void testToString(UEDigraph digraph)
testNodeCount
protected void testNodeCount(UEDigraph digraph,
int expected)
testEdgeCount
protected void testEdgeCount(UEDigraph digraph,
int expected)
testIsEmpty
protected void testIsEmpty(UEDigraph digraph,
boolean expected)
testIsEdgeFree
protected void testIsEdgeFree(UEDigraph digraph,
boolean expected)
testContainsNode
protected void testContainsNode(UEDigraph digraph,
java.lang.Object node,
boolean expected)
testContainsEdge
protected void testContainsEdge(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
boolean expected,
boolean expectException)
testContainsEdge
protected void testContainsEdge(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
java.lang.Object edge,
boolean expected,
boolean expectException)
testContainsEdge
protected void testContainsEdge(UEDigraph digraph,
java.lang.Object edge,
boolean expected)
testContainsEdgeAllWays
protected void testContainsEdgeAllWays(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
java.lang.Object edge,
boolean expected,
boolean expectException)
testCountInboundEdges
protected void testCountInboundEdges(UEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
testCountOutboundEdges
protected void testCountOutboundEdges(UEDigraph digraph,
java.lang.Object node,
int expected,
boolean expectException)
testGetInboundEdges
protected void testGetInboundEdges(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
testGetOutboundEdges
protected void testGetOutboundEdges(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
testGetFromNode
protected void testGetFromNode(UEDigraph digraph,
java.lang.Object edge,
java.lang.Object expected,
boolean expectException)
testGetToNode
protected void testGetToNode(UEDigraph digraph,
java.lang.Object edge,
java.lang.Object expected,
boolean expectException)
testGetEdge
protected void testGetEdge(UEDigraph digraph,
java.lang.Object fromNode,
java.lang.Object toNode,
java.lang.Object expected,
boolean expectException)
testGetToNodes
protected void testGetToNodes(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
testGetFromNodes
protected void testGetFromNodes(UEDigraph digraph,
java.lang.Object node,
java.util.Set expected,
boolean expectException)
testNodeIterator
protected void testNodeIterator(UEDigraph digraph,
java.util.Set expected)
testEdgeIterator
protected void testEdgeIterator(UEDigraph digraph)
testGetNodes
protected void testGetNodes(UEDigraph digraph,
java.util.Set expected)
testGetEdges
protected void testGetEdges(UEDigraph digraph,
java.util.Set expected)
testContainsNodes
protected void testContainsNodes(UEDigraph digraph,
java.util.Set nodes,
boolean expected)
testContainsEdges
protected void testContainsEdges(UEDigraph digraph,
java.util.Set edges,
boolean expected)
testContainsUEDigraph
protected void testContainsUEDigraph(UEDigraph digraph,
UEDigraph containedUEDigraph,
boolean expected)
testSameUEDigraphAs
protected void testSameUEDigraphAs(UEDigraph digraph,
UEDigraph containedUEDigraph,
boolean expected)
testSerialization
public void testSerialization()
testQueriesOnEmpty
public void testQueriesOnEmpty()
testQueriesOnTestUEDigraph
public void testQueriesOnTestUEDigraph()
testUEDigraphAlgebraContainsUEDigraph
public void testUEDigraphAlgebraContainsUEDigraph()
testUEDigraphAlgebraSameUEDigraphs
public void testUEDigraphAlgebraSameUEDigraphs()
testUEDigraphAlgebraIntersectUEDigraphs
public void testUEDigraphAlgebraIntersectUEDigraphs()
testUEDigraphAlgebraUnionUEDigraphs
public void testUEDigraphAlgebraUnionUEDigraphs()
testImmutable
public void testImmutable(java.lang.Object ob,
boolean immutable)
Copyright (c) 2001, 2002, David Walend