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.


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