Test Case Identifier
TC-P_C04
Test Items
The purpose of the test is to check that a circular path (loop) can be created in the path. Methods to be used: addNode(), addEdge(), add(), setRoot(), getNodePath(), getRoot().
Input Specification
Test Case Specification: Add an object of Single Graph class and an object of Path class.Add three nodes to the graph. Add one edge that uses the first node as a source node and the second node as a target node, another edge that uses the second node as a source node and the third node as a target node and a third edge that uses the third node as a source node and the first node as a target node. Set the first node as a root to the path. Add the created nodes and edges to the path.
Output Specification
Assert that the root of the path equals the last node of the path i.e. assert that a root has been created.