@Test(expected = RuntimeException.class ) public void testRunToTimeInThePast() throws Exception { recordEvents(); SimulationDebugger simDebugger = createDebugger(); simDebugger.init(new NoExecutionVariableScope()); try { simDebugger.runTo(-1); fail("RuntimeException expected - unable to execute event from the past"); } finally { simDebugger.close(); ProcessEngines.destroy(); } }
@Override public void close() { SimulationRunContext.getEventCalendar().clear(); SimulationRunContext.removeEventCalendar(); SimulationRunContext.getProcessEngine().close(); SimulationRunContext.removeProcessEngine(); }
SimpleSimulationRun extends AbstractSimulationRun { @Override public void close() { SimulationRunContext.getEventCalendar().clear(); SimulationRunContext.removeEventCalendar(); SimulationRunContext.getProcessEngine().close(); SimulationRunContext.removeProcessEngine(); } }
SimpleSimulationRun extends AbstractSimulationRun { @Override public void close() { SimulationRunContext.getEventCalendar().clear(); SimulationRunContext.removeEventCalendar(); SimulationRunContext.getProcessEngine().close(); SimulationRunContext.removeProcessEngine(); } protected  SimpleSimulationRun(Builder builder); }
SimpleSimulationRun extends AbstractSimulationRun { @Override public void close() { SimulationRunContext.getEventCalendar().clear(); SimulationRunContext.removeEventCalendar(); SimulationRunContext.getProcessEngine().close(); SimulationRunContext.removeProcessEngine(); } protected  SimpleSimulationRun(Builder builder); @Override void close(); }
SimpleSimulationRun extends AbstractSimulationRun { @Override public void close() { SimulationRunContext.getEventCalendar().clear(); SimulationRunContext.removeEventCalendar(); SimulationRunContext.getProcessEngine().close(); SimulationRunContext.removeProcessEngine(); } protected  SimpleSimulationRun(Builder builder); @Override void close();  }