Test Case Identifier
removeNode
Test Items
The purpose of the test is to verify that the method removeNode functions properly i.e. removes both the specified node and the edge using it. The method to be used is removeNode(Node 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:
    • When a node isn't in the graph, it returns null
    • When a node is removed, the method returns the removed node
    • The removed node is no longer present in the graph, and all edges attached to it are removed with it