All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsltools.testers.graphtester.GraphTest

java.lang.Object
   |
   +----jdsltools.testers.GenericTester
           |
           +----jdsltools.testers.graphtester.GraphTest

public class GraphTest
extends GenericTester
This class tests a Graph implementation against a reference graph. It checks after every operation for equivalence with a reference graph. The GraphComparator does a lot of the work here as it uses many of the methods of Graph to test for equality. These methods are: size, isEmpty, numVertices, numEdges, vertices, elements, edges, positions

The GraphFactory in the process of building a random graph uses and therefore in effect tests insertEdge, insertVertex, and newContainer.

Version:
$Revision: 1.3 $, $Date: 1998/07/09 13:13:52 $
Author:
Marco da Silva (mds)

Constructor Index

 o GraphTest(Factory, StructureComparator, String)

Method Index

 o main(String[])
Command line arguments: the first string is the fully-qualified name of the test structure, the second a fully qualifed name of the reference structure.

Constructors

 o GraphTest
 public GraphTest(Factory builder,
                  StructureComparator comp,
                  String ref)

Methods

 o main
 public static void main(String args[])
Command line arguments: the first string is the fully-qualified name of the test structure, the second a fully qualifed name of the reference structure.


All Packages  Class Hierarchy  This Package  Previous  Next  Index