|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.jester.TestSuite
diva.pod.test.LightweightGraphTest
public class LightweightGraphTest
A test suite for the LightweightGraph class.
Nested Class Summary | |
---|---|
static interface |
LightweightGraphTest.GraphFactory
The graph factory interface |
static class |
LightweightGraphTest.LightweightGraphFactory
The factory for the LightweightGraph class |
class |
LightweightGraphTest.TestGraph1
A test case containing the following test graph, where the labels are the 'name' attribute of the nodes and edges: |
class |
LightweightGraphTest.TestGraph2
A test case containing the following test graph, where the labels are the 'name' attribute of the nodes and edges and "N" is a parent node. |
Constructor Summary | |
---|---|
LightweightGraphTest(TestHarness harness,
LightweightGraphTest.GraphFactory factory)
Constructor |
Method Summary | |
---|---|
String |
iterateNames(Iterator i)
Given an iterator over PropertyContainers, return the string consisting of the concatenated "name" attributes |
static void |
main(String[] argv)
Create a default test harness and run all tests on it. |
void |
runSuite()
runSuite() |
void |
testBig()
Test a large (64 knode) graph |
void |
testEmpty()
Perform tests on an empty graph |
void |
testHierarchy()
Create test graph r and check properties of a hierarchical graph |
void |
testInOut()
Create test graph 1 and check that in and out edges are iterated properly |
void |
testNodesEdges()
Create test graph 1 and check that the node and edge iterators work correctly. |
void |
testStarConnected()
Test a star-connected graph |
void |
testSuccPred()
Create test graph 1 and check that successor and predecessor nodes are iterated properly |
Methods inherited from class diva.util.jester.TestSuite |
---|
getFactory, getTestHarness, run, runAll, runTestCase, setFactory, setTestHarness |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LightweightGraphTest(TestHarness harness, LightweightGraphTest.GraphFactory factory)
Method Detail |
---|
public void runSuite()
runSuite
in class TestSuite
public static void main(String[] argv)
public void testEmpty()
public void testStarConnected()
public void testBig()
public void testNodesEdges()
public void testSuccPred()
public void testInOut()
public void testHierarchy()
public String iterateNames(Iterator i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |