Package h07

Class TemplateTests.DirectedGraphTemplateTest

  • Enclosing class:
    TemplateTests

    @Nested
    public class TemplateTests.DirectedGraphTemplateTest
    extends TestClass
    Tests for interface DirectedGraph.
    • Field Detail

      • getAllNodes

        public final Method getAllNodes
        Method object for DirectedGraph.getAllNodes()
      • getChildrenForNode

        public final Method getChildrenForNode
        Method object for DirectedGraph.getChildrenForNode(V)
      • getArcWeightBetween

        public final Method getArcWeightBetween
        Method object for DirectedGraph.getArcWeightBetween(V, V)
      • addNode

        public final Method addNode
        Method object for DirectedGraph.addNode(V)
      • removeNode

        public final Method removeNode
        Method object for DirectedGraph.removeNode(V)
      • connectNodes

        public final Method connectNodes
        Method object for DirectedGraph.connectNodes(V, A, V)
      • disconnectNodes

        public final Method disconnectNodes
        Method object for DirectedGraph.disconnectNodes(V, V)
    • Method Detail

      • testDefinition

        @Test
        public void testDefinition()
        Tests the definition of DirectedGraph.
        • Asserts that the interface...
          • is public
          • is generic and has two type parameters, V and A
        • Asserts that all methods are public and abstract and have the correct return type
        Specified by:
        testDefinition in class TestClass