CalibrationTimeoutRepository { public static void writeToCSV(Path csv, int numberOfDuration) { CALIBRATION_TIMEOUTS.writeToCSV(Objects.requireNonNull(csv, "The csv can't be null."), Objects.requireNonNull(numberOfDuration, "The numberOfDuration can't be null.")); }  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 testWriteToCSV() throws Exception { CalibrationTimeoutRepository.addCalibrationTimeout(calibrationTimeout); CalibrationTimeoutRepository.writeAllCalibrationTimeoutsToProperties(); CalibrationTimeoutRepository.writeToCSV(); File file = new File("calibration_timeouts.csv"); assertTrue("The csv file should exists.", file.exists()); }