diva.pod.test
Class LightweightNetworkTest

java.lang.Object
  extended by diva.util.jester.TestSuite
      extended by diva.pod.test.LightweightNetworkTest

public class LightweightNetworkTest
extends TestSuite

A test suite for the LightweightNetwork class.

Version:
$Revision: 1.3 $
Author:
John Reekie

Nested Class Summary
static class LightweightNetworkTest.LightweightNetworkFactory
          The factory for the LightweightNetwork class
 class LightweightNetworkTest.TestNetwork1
          A test case containing the following test network, where the labels are the 'name' attribute of the nodes, ports (in parens), and edges.
 
Constructor Summary
LightweightNetworkTest(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 runAll()
          runAll()
 void runSuite()
          runSuite()
 void testInOut()
          Create test network 1 and check that in and out edges are iterated properly
 void testNodesEdges()
          Create test network 1 and check that the node and edge iterators work correctly.
 void testSuccPred()
          Create test network 1 and check that successor and predecessor nodes are iterated properly
 
Methods inherited from class diva.util.jester.TestSuite
getFactory, getTestHarness, run, runTestCase, setFactory, setTestHarness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightweightNetworkTest

public LightweightNetworkTest(TestHarness harness,
                              LightweightGraphTest.GraphFactory factory)
Constructor

Method Detail

runAll

public void runAll()
runAll()

Overrides:
runAll in class TestSuite

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.


testNodesEdges

public void testNodesEdges()
Create test network 1 and check that the node and edge iterators work correctly.


testSuccPred

public void testSuccPred()
Create test network 1 and check that successor and predecessor nodes are iterated properly


testInOut

public void testInOut()
Create test network 1 and check that in and out edges are iterated properly


iterateNames

public String iterateNames(Iterator i)
Given an iterator over PropertyContainers, return the string consisting of the concatenated "name" attributes



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