Test Case Identifier
addEdge
Test Items
The purpose of the test is to check that by calling the addEdge method on an existing singleGraph object a new edge will be added to the graph. The methods to be used is addEdge(String id, String node, String node)
Input Specification

The possible values of the different categories for the method's inputs and environment are defined in the following text file:
  • Categories definition

  • The combinations of the category values (generated with genpairs) to be used as input for the test cases to be generated are presented in the following csv file:
  • Categories' values
  • Output Specification
    • Assert that adding an edge whose id already exists with strt checking set to true and autocreate false returns an IdAlreadyInUseException
    • Assert that adding an edge between two non existing node, with strt checking set to false returns null.
    • Assert that adding an edge whose id already exists with strt checking set to false returns the existing edge
    • Assert that adding an edge whose id do not exist between two existing node actually creates the edge.