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