CalibrationTimeout extends Timeout { public void setStatus(Status status) { this.status = Objects.requireNonNull(status, "The status can't be null."); } CalibrationTimeout(String engineOrProcess, String stepOrProcess, String description, int value, int timeToRepetition);  CalibrationTimeout(String engineOrProcess, String stepOrProcess, String description, int value, int timeToRepetition, int measuredTime);  CalibrationTimeout(String engineOrProcess, String stepOrProcess, int value, int timeToRepetition);  CalibrationTimeout(String engineOrProcess, String stepOrProcess, String description, int value);  CalibrationTimeout(String engineOrProcess, String stepOrProcess, int value);  CalibrationTimeout(Timeout timeout);  CalibrationTimeout(Timeout timeout, int measuredTime); Status getStatus(); void setStatus(Status status); String getCalibrationTimeoutKey(); long getTimestamp(); int getMeasuredTime(); void setMeasuredTime(int measuredTime);  }
@Test public void testSetStatus() throws Exception { CalibrationTimeout calibrationTimeout = new CalibrationTimeout(new Timeout(engine, step, value)); CalibrationTimeout.Status status = CalibrationTimeout.Status.EXCEEDED; calibrationTimeout.setStatus(status); assertEquals("The statuses should be equal.", status, calibrationTimeout.getStatus()); }