Test Case Method Identifier
getNode
Test Items
The purpose of testing the getNode method is to check whether the method correctly grabs the node at the specified index.
Input Specification
To test the getNode method, we used several inputs. One input is a legal index of a node, while the other two are illegal indexes (negative and out-of-bound values).
Output Specification
Assert that, when passed a legal index, the getNode method returns the node from the graph which lies at that index, while when passed illegal indexes, the method should return an IndexOutOfBoundsException.