@Test
public void undoRedoShowClassPlanet() {
showClassPlanet();
CommandController commandController = fGraphPanel.getCommandController();
Assert.assertEquals("Command controller must be able to undo the last command ", true, commandController.canUndo());
commandController.undoCommand();
Assert.assertEquals("Graph must not contain nodes after undo", 0, fGraphPanel.getGraph().nodeCount());
Assert.assertEquals("Graph must not contain edges after undo", 0, fGraphPanel.getGraph().edgeCount());
Assert.assertEquals("There should be no more command to be undone", false, commandController.canUndo());
Assert.assertEquals("Command controller must be able to redo the last command ", true, commandController.canRedo());
commandController.redoCommand();
Assert.assertEquals("There should be no more command to be redone", false, commandController.canRedo());
checkClassPlanet();
}