public class LightweightGraphTest extends TestSuite
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
LightweightGraphTest(TestHarness harness,
LightweightGraphTest.GraphFactory factory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
getFactory, getTestHarness, run, runAll, runTestCase, setFactory, setTestHarness
public LightweightGraphTest(TestHarness harness, LightweightGraphTest.GraphFactory factory)
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()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.