Package diva.graph.test
Class BasicGraphModelTest
- java.lang.Object
-
- diva.util.jester.TestSuite
-
- diva.graph.test.BasicGraphModelTest
-
public class BasicGraphModelTest extends TestSuite
A test suite for the BasicGraphModel class.- Version:
- $Id$
- Author:
- John Reekie
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicGraphModelTest.BasicGraphModelFactoryThe factory for the BasicGraphModel class.static interfaceBasicGraphModelTest.GraphFactoryThe graph factory interface.
-
Constructor Summary
Constructors Constructor Description BasicGraphModelTest(TestHarness harness, BasicGraphModelTest.GraphFactory factory)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] argv)Create a default test harness and run all tests on it.voidrunSuite()Run the test.voidtestBig()Test a large (64 knode) graph.voidtestEmpty()Perform tests on an empty graph.voidtestStarConnected()Test a star-connected graph.-
Methods inherited from class diva.util.jester.TestSuite
getFactory, getTestHarness, run, runAll, runTestCase, setFactory, setTestHarness
-
-
-
-
Constructor Detail
-
BasicGraphModelTest
public BasicGraphModelTest(TestHarness harness, BasicGraphModelTest.GraphFactory factory)
Constructor.
-
-
Method Detail
-
main
public static void main(java.lang.String[] argv)
Create a default test harness and run all tests on it.
-
testEmpty
public void testEmpty()
Perform tests on an empty graph.
-
testStarConnected
public void testStarConnected()
Test a star-connected graph.
-
testBig
public void testBig()
Test a large (64 knode) graph. Unfortunately, something seems to hang after running this test. Presumably there's a problem with the diva.graph package (apart from the bug that won't even let you get the number of nodes).
-
-