net.walend.digraph.test
Class CEDigraphTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.walend.toolkit.junit.TestCase
                    |
                    +--net.walend.digraph.test.CEDigraphTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CEPathTest, HashCEDigraphTest, LMCEDigraphTest, MatrixCEDigraphTest, MutableCEDigraphTest

public abstract class CEDigraphTest
extends net.walend.toolkit.junit.TestCase

Since:
20010621
Author:
David Walend dfw1@cornell.edu

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
CEDigraphTest(java.lang.String testName)
           
 
Method Summary
protected abstract  CEDigraph getEmptyTestCEDigraph()
           
protected abstract  MutableCEDigraph getEmptyTestMutableCEDigraph()
           
protected abstract  CEDigraph getTestCEDigraph()
           
protected abstract  MutableCEDigraph getTestMutableCEDigraph()
           
 void testCEDigraphAlgebraContainsCEDigraph()
           
 void testCEDigraphAlgebraIntersectCEDigraphs()
           
 void testCEDigraphAlgebraSameCEDigraphs()
           
 void testCEDigraphAlgebraUnionCEDigraphs()
           
protected  void testContainsCEDigraph(CEDigraph digraph, CEDigraph containedCEDigraph, boolean expected)
           
protected  void testContainsEdge(CEDigraph digraph, java.lang.Object fromNode, java.lang.Object toNode, boolean expected, boolean expectException)
           
protected  void testContainsEdge(CEDigraph digraph, java.lang.Object fromNode, java.lang.Object toNode, java.lang.Object edge, boolean expected, boolean expectException)
           
protected  void testContainsEdgeAllWays(CEDigraph digraph, java.lang.Object fromNode, java.lang.Object toNode, java.lang.Object edge, boolean expected, boolean expectException)
           
protected  void testContainsNode(CEDigraph digraph, java.lang.Object node, boolean expected)
           
protected  void testContainsNodes(CEDigraph digraph, java.util.Set nodes, boolean expected)
           
 void testCopyConstructor()
           
protected  void testCountInboundEdges(CEDigraph digraph, java.lang.Object node, int expected, boolean expectException)
           
protected  void testCountOutboundEdges(CEDigraph digraph, java.lang.Object node, int expected, boolean expectException)
           
protected  void testEdgeCount(CEDigraph digraph, int expected)
           
protected  void testEdgeIterator(CEDigraph digraph)
           
protected  void testGetEdge(CEDigraph digraph, java.lang.Object fromNode, java.lang.Object toNode, java.lang.Object expected, boolean expectException)
           
protected  void testGetEdges(CEDigraph digraph, Bag expected)
           
protected  void testGetFromNodes(CEDigraph digraph, java.lang.Object node, java.util.Set expected, boolean expectException)
           
protected  void testGetInboundEdges(CEDigraph digraph, java.lang.Object node, Bag expected, boolean expectException)
           
protected  void testGetNodes(CEDigraph digraph, java.util.Set expected)
           
protected  void testGetOutboundEdges(CEDigraph digraph, java.lang.Object node, Bag expected, boolean expectException)
           
protected  void testGetToNodes(CEDigraph digraph, java.lang.Object node, java.util.Set expected, boolean expectException)
           
 void testImmutable(java.lang.Object ob, boolean immutable)
           
protected  void testIsEdgeFree(CEDigraph digraph, boolean expected)
           
protected  void testIsEmpty(CEDigraph digraph, boolean expected)
           
protected  void testNodeCount(CEDigraph digraph, int expected)
           
protected  void testNodeIterator(CEDigraph digraph, java.util.Set expected)
           
 void testQueriesOnEmpty()
           
 void testQueriesOnTestCEDigraph()
           
 void testRemoveNodeAndEdge()
           
protected  void testSameCEDigraphAs(CEDigraph digraph, CEDigraph containedCEDigraph, boolean expected)
           
 void testSerialization()
           
protected  void testToString(CEDigraph 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
 

Constructor Detail

CEDigraphTest

public CEDigraphTest(java.lang.String testName)
Method Detail

getEmptyTestCEDigraph

protected abstract CEDigraph getEmptyTestCEDigraph()

getTestCEDigraph

protected abstract CEDigraph getTestCEDigraph()

getTestMutableCEDigraph

protected abstract MutableCEDigraph getTestMutableCEDigraph()

getEmptyTestMutableCEDigraph

protected abstract MutableCEDigraph getEmptyTestMutableCEDigraph()

testCopyConstructor

public void testCopyConstructor()

testToString

protected void testToString(CEDigraph digraph)

testNodeCount

protected void testNodeCount(CEDigraph digraph,
                             int expected)

testEdgeCount

protected void testEdgeCount(CEDigraph digraph,
                             int expected)

testIsEmpty

protected void testIsEmpty(CEDigraph digraph,
                           boolean expected)

testIsEdgeFree

protected void testIsEdgeFree(CEDigraph digraph,
                              boolean expected)

testContainsNode

protected void testContainsNode(CEDigraph digraph,
                                java.lang.Object node,
                                boolean expected)

testContainsEdge

protected void testContainsEdge(CEDigraph digraph,
                                java.lang.Object fromNode,
                                java.lang.Object toNode,
                                boolean expected,
                                boolean expectException)

testContainsEdge

protected void testContainsEdge(CEDigraph digraph,
                                java.lang.Object fromNode,
                                java.lang.Object toNode,
                                java.lang.Object edge,
                                boolean expected,
                                boolean expectException)

testContainsEdgeAllWays

protected void testContainsEdgeAllWays(CEDigraph digraph,
                                       java.lang.Object fromNode,
                                       java.lang.Object toNode,
                                       java.lang.Object edge,
                                       boolean expected,
                                       boolean expectException)

testCountInboundEdges

protected void testCountInboundEdges(CEDigraph digraph,
                                     java.lang.Object node,
                                     int expected,
                                     boolean expectException)

testCountOutboundEdges

protected void testCountOutboundEdges(CEDigraph digraph,
                                      java.lang.Object node,
                                      int expected,
                                      boolean expectException)

testGetInboundEdges

protected void testGetInboundEdges(CEDigraph digraph,
                                   java.lang.Object node,
                                   Bag expected,
                                   boolean expectException)

testGetOutboundEdges

protected void testGetOutboundEdges(CEDigraph digraph,
                                    java.lang.Object node,
                                    Bag expected,
                                    boolean expectException)

testGetEdge

protected void testGetEdge(CEDigraph digraph,
                           java.lang.Object fromNode,
                           java.lang.Object toNode,
                           java.lang.Object expected,
                           boolean expectException)

testGetToNodes

protected void testGetToNodes(CEDigraph digraph,
                              java.lang.Object node,
                              java.util.Set expected,
                              boolean expectException)

testGetFromNodes

protected void testGetFromNodes(CEDigraph digraph,
                                java.lang.Object node,
                                java.util.Set expected,
                                boolean expectException)

testNodeIterator

protected void testNodeIterator(CEDigraph digraph,
                                java.util.Set expected)

testEdgeIterator

protected void testEdgeIterator(CEDigraph digraph)

testGetNodes

protected void testGetNodes(CEDigraph digraph,
                            java.util.Set expected)

testGetEdges

protected void testGetEdges(CEDigraph digraph,
                            Bag expected)

testContainsNodes

protected void testContainsNodes(CEDigraph digraph,
                                 java.util.Set nodes,
                                 boolean expected)

testContainsCEDigraph

protected void testContainsCEDigraph(CEDigraph digraph,
                                     CEDigraph containedCEDigraph,
                                     boolean expected)

testSameCEDigraphAs

protected void testSameCEDigraphAs(CEDigraph digraph,
                                   CEDigraph containedCEDigraph,
                                   boolean expected)

testSerialization

public void testSerialization()

testQueriesOnEmpty

public void testQueriesOnEmpty()

testQueriesOnTestCEDigraph

public void testQueriesOnTestCEDigraph()

testCEDigraphAlgebraContainsCEDigraph

public void testCEDigraphAlgebraContainsCEDigraph()

testCEDigraphAlgebraSameCEDigraphs

public void testCEDigraphAlgebraSameCEDigraphs()

testCEDigraphAlgebraIntersectCEDigraphs

public void testCEDigraphAlgebraIntersectCEDigraphs()

testRemoveNodeAndEdge

public void testRemoveNodeAndEdge()

testCEDigraphAlgebraUnionCEDigraphs

public void testCEDigraphAlgebraUnionCEDigraphs()

testImmutable

public void testImmutable(java.lang.Object ob,
                          boolean immutable)


Copyright (c) 2001, 2002, David Walend