@Test public void testStopTimeAsssertion() { DynamicSimulationParameters parameters = new DynamicSimulationParameters(); exception.expect(AssertionError.class); exception.expectMessage("Stop time should be greater than start time"); parameters.setStopTime(0); }
public DynamicSimulationParameters setStopTime(int stopTime) { if (stopTime <= startTime) { throw new AssertionError("Stop time should be greater than start time"); } this.stopTime = stopTime; return this; }
DynamicSimulationParameters extends AbstractExtendable<DynamicSimulationParameters> { public DynamicSimulationParameters setStopTime(int stopTime) { if (stopTime <= startTime) { throw new AssertionError("Stop time should be greater than start time"); } this.stopTime = stopTime; return this; } }
DynamicSimulationParameters extends AbstractExtendable<DynamicSimulationParameters> { public DynamicSimulationParameters setStopTime(int stopTime) { if (stopTime <= startTime) { throw new AssertionError("Stop time should be greater than start time"); } this.stopTime = stopTime; return this; } DynamicSimulationParameters(int startTime, int stopTime);  DynamicSimulationParameters(); protected  DynamicSimulationParameters(DynamicSimulationParameters other); }
DynamicSimulationParameters extends AbstractExtendable<DynamicSimulationParameters> { public DynamicSimulationParameters setStopTime(int stopTime) { if (stopTime <= startTime) { throw new AssertionError("Stop time should be greater than start time"); } this.stopTime = stopTime; 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(); }
DynamicSimulationParameters extends AbstractExtendable<DynamicSimulationParameters> { public DynamicSimulationParameters setStopTime(int stopTime) { if (stopTime <= startTime) { throw new AssertionError("Stop time should be greater than start time"); } this.stopTime = stopTime; 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; }