Test Case Method Identifier
clear
Test Items
The purpose of the test is to check that, by calling the clear method, a graph after flush is really empty, while all listeners still exist.
Input Specification
To test the clear method, we created a SingleGraph (in the setup() method), added both an ElementSink and an AttributeSink, and tested the method on this graph.
Output Specification
Assert that all the graph is empty (no nodes, no edges), and that the listeners are still alive after that.