DynamicSimulationParameters extends AbstractExtendable<DynamicSimulationParameters> { public DynamicSimulationParameters setStartTime(int startTime) { if (startTime < 0) { throw new AssertionError("Start time should be zero or positive"); } this.startTime = startTime; return this; } DynamicSimulationParameters(int startTime, int stopTime);  DynamicSimulationParameters(); protected  DynamicSimulationParameters(DynamicSimulationParameters other); static DynamicSimulationParameters load(); static DynamicSimulationParameters load(PlatformConfig platformConfig); int getStartTime(); DynamicSimulationParameters setStartTime(int startTime); int getStopTime(); DynamicSimulationParameters setStopTime(int stopTime); DynamicSimulationParameters copy(); @Override String toString(); static final String VERSION; static final int DEFAULT_START_TIME; static final int DEFAULT_STOP_TIME; }
@Test public void testStartTimeAsssertion() { DynamicSimulationParameters parameters = new DynamicSimulationParameters(); exception.expect(AssertionError.class); exception.expectMessage("Start time should be zero or positive"); parameters.setStartTime(-1); }