@Test public void testStartTimeAsssertion() { DynamicSimulationParameters parameters = new DynamicSimulationParameters(); exception.expect(AssertionError.class); exception.expectMessage("Start time should be zero or positive"); parameters.setStartTime(-1); }
public DynamicSimulationParameters setStartTime(int startTime) { if (startTime < 0) { throw new AssertionError("Start time should be zero or positive"); } this.startTime = startTime; return this; }
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 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); }
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(); }
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; }