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:
$Revision: 1.3 $
Author:
John Reekie

Nested Class Summary
static class BasicGraphModelTest.BasicGraphModelFactory
          The factory for the BasicGraphModel class
static interface BasicGraphModelTest.GraphFactory
          The graph factory interface
 
Constructor Summary
BasicGraphModelTest(TestHarness harness, BasicGraphModelTest.GraphFactory factory)
          Constructor
 
Method Summary
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 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
 

Constructor Detail

BasicGraphModelTest

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

Method Detail

runSuite

public void runSuite()
runSuite()

Specified by:
runSuite in class TestSuite

main

public static void main(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).



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.