diva.graph.test
Class BasicGraphModelTest

java.lang.Object
  extended by diva.util.jester.TestSuite
      extended by diva.graph.test.BasicGraphModelTest

public class BasicGraphModelTest
extends TestSuite

A test suite for the BasicGraphModel class.

Version:
$Id: BasicGraphModelTest.java 47513 2007-12-07 06:32:21Z cxh $
Author:
John Reekie

Nested Class Summary
static class BasicGraphModelTest.BasicGraphModelFactory
          The factory for the BasicGraphModel class.
static interface BasicGraphModelTest.GraphFactory
          The graph factory interface.
 
Field Summary
private  BasicGraphModelTest.GraphFactory factory
          The unit factory.
 
Constructor Summary
BasicGraphModelTest(TestHarness harness, BasicGraphModelTest.GraphFactory factory)
          Constructor.
 
Method Summary
static void main(java.lang.String[] argv)
          Create a default test harness and run all tests on it.
 void runSuite()
          Run the test.
 void testBig()
          Test a large (64 knode) graph.
 void testEmpty()
          Perform tests on an empty graph.
 void testStarConnected()
          Test a star-connected graph.
 
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
 

Field Detail

factory

private BasicGraphModelTest.GraphFactory factory
The unit factory.

Constructor Detail

BasicGraphModelTest

public BasicGraphModelTest(TestHarness harness,
                           BasicGraphModelTest.GraphFactory factory)
Constructor.

Method Detail

runSuite

public void runSuite()
Run the test.

Specified by:
runSuite in class TestSuite

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).