* Test of execute method, of class CompoundCommand.
*/
public void testExecute() {
System.out.println("execute");
try {
Edge e = new Edge(0, 0, EdgeState.MAYBE);
Command c = new EdgeCommand(e);
CompoundCommand instance = new CompoundCommand();
instance.add(c);
instance.execute();
assertEquals("Command not executed.", c.executed, true);
assertEquals("Invalid receiver state.", e.getState(), EdgeState.YES);
} catch (Exception ex) {
fail("Exception raised.");
}
}