CalibrationTimeoutRepository { public static void writeAllCalibrationTimeoutsToProperties() { CALIBRATION_TIMEOUTS.writeAllCalibrationTimeoutsToProperties(); }  static HashMap<String, CalibrationTimeout> getAllCalibrationTimeouts(); static void addCalibrationTimeout(CalibrationTimeout calibrationTimeout); static void writeAllCalibrationTimeoutsToProperties(); static void writeToCSV(Path csv, int numberOfDuration); static void writeToCSV(); static void clean(); static HashMap<String, CalibrationTimeout> getAllNonRedundantTimeouts(); static final CalibrationTimeouts CALIBRATION_TIMEOUTS; }
@Test public void testWriteAllCalibrationTimeoutsToProperties() throws Exception { CalibrationTimeoutRepository.addCalibrationTimeout(calibrationTimeout); CalibrationTimeoutRepository.writeAllCalibrationTimeoutsToProperties(); File properties = new File("timeout.properties"); assertTrue("The properties file should exists.", properties.exists()); }