javautils.graph.templates
Class BfsTemplateTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--javautils.graph.templates.BfsTemplateTest
All Implemented Interfaces:
junit.framework.Test, TestGraphConstants

public class BfsTemplateTest
extends junit.framework.TestCase
implements TestGraphConstants

A [JUnit] test for BfsTemplate.


Field Summary
static java.lang.String CLOTHING_GRAPH_BFS
           
static java.lang.String RSTUVWXY_GRAPH_BFS
           
 
Fields inherited from interface javautils.graph.testing.TestGraphConstants
ABCDEFGH_GRAPH, ABCDEFGHIJ_GRAPH, CLOTHING_GRAPH, RSTUVWXY_GRAPH, STUVWXYZ_GRAPH, UVWXYZ_GRAPH
 
Constructor Summary
BfsTemplateTest()
           
 
Method Summary
static java.lang.String bfsTranscript(Graph g)
           
 void testBfsOnCLOTHING()
          Tests that the BfsTemplate-method gives the expected transcript on the TestGraphConstants.CLOTHING_GRAPH.
 void testBfsOnRSTUVWXY()
          Tests that the BfsTemplate-method gives the expected transcript on the TestGraphConstants.RSTUVWXY_GRAPH.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RSTUVWXY_GRAPH_BFS

public static final java.lang.String RSTUVWXY_GRAPH_BFS
See Also:
Constant Field Values

CLOTHING_GRAPH_BFS

public static final java.lang.String CLOTHING_GRAPH_BFS
See Also:
Constant Field Values
Constructor Detail

BfsTemplateTest

public BfsTemplateTest()
Method Detail

testBfsOnRSTUVWXY

public void testBfsOnRSTUVWXY()

Tests that the BfsTemplate-method gives the expected transcript on the TestGraphConstants.RSTUVWXY_GRAPH.


testBfsOnCLOTHING

public void testBfsOnCLOTHING()

Tests that the BfsTemplate-method gives the expected transcript on the TestGraphConstants.CLOTHING_GRAPH.


bfsTranscript

public static java.lang.String bfsTranscript(Graph g)