@Test(expected = IllegalStateException.class) public void undo() { command.undo(scenarioSimulationContextLocal); }
@Override public CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context) { String message = this.getClass().getSimpleName() + " is not undoable"; throw new IllegalStateException(message); }
AbstractScenarioSimulationCommand extends AbstractCommand<ScenarioSimulationContext, ScenarioSimulationViolation> { @Override public CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context) { String message = this.getClass().getSimpleName() + " is not undoable"; throw new IllegalStateException(message); } }
AbstractScenarioSimulationCommand extends AbstractCommand<ScenarioSimulationContext, ScenarioSimulationViolation> { @Override public CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context) { String message = this.getClass().getSimpleName() + " is not undoable"; throw new IllegalStateException(message); } protected  AbstractScenarioSimulationCommand(); }
AbstractScenarioSimulationCommand extends AbstractCommand<ScenarioSimulationContext, ScenarioSimulationViolation> { @Override public CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context) { String message = this.getClass().getSimpleName() + " is not undoable"; throw new IllegalStateException(message); } protected  AbstractScenarioSimulationCommand(); long getId(); @Override CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context); @Override CommandResult<ScenarioSimulationViolation> execute(ScenarioSimulationContext context); }
AbstractScenarioSimulationCommand extends AbstractCommand<ScenarioSimulationContext, ScenarioSimulationViolation> { @Override public CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context) { String message = this.getClass().getSimpleName() + " is not undoable"; throw new IllegalStateException(message); } protected  AbstractScenarioSimulationCommand(); long getId(); @Override CommandResult<ScenarioSimulationViolation> undo(ScenarioSimulationContext context); @Override CommandResult<ScenarioSimulationViolation> execute(ScenarioSimulationContext context);  }