CalibrationTimeouts { public void writeAllCalibrationTimeoutsToProperties() { List<CalibrationTimeout> timeouts = new ArrayList<>(getAllNonRedundantTimeoutsProperties().values()); Properties.write(properties, convertCalibrationTimeoutListToTimeoutList(timeouts)); } CalibrationTimeouts();  CalibrationTimeouts(ArrayList<CalibrationTimeout> calibrationTimeouts, String nameOfProperties, String nameOfCSV);  CalibrationTimeouts(String nameOfProperties, String nameOfCSV);  CalibrationTimeouts(ArrayList<CalibrationTimeout> calibrationTimeouts); void addCalibrationTimeout(CalibrationTimeout calibrationTimeout); CalibrationTimeout getCalibrationTimeout(String key); HashMap<String, CalibrationTimeout> getAllCalibrationTimeouts(); HashMap<String, CalibrationTimeout> getAllNonRedundantTimeouts(); void writeAllCalibrationTimeoutsToProperties(); void writeToCSV(Path csv, int numberOfDuration); void writeToCSV(); void clean();  }
@Test public void testWriteAllCalibrationTimeoutsToProperties() throws Exception { CalibrationTimeout calibrationTimeout = new CalibrationTimeout("ode", "deploy", "maven", 20_000, 2_000); calibrationTimeouts.addCalibrationTimeout(calibrationTimeout); calibrationTimeouts.writeAllCalibrationTimeoutsToProperties(); assertTrue("The properties should exist.", properties.exists()); }