CSV { public static void write(Path csv, List<CalibrationTimeout> timeouts) { FileTasks.deleteFile(Objects.requireNonNull(csv, "The csv file can't be null.")); write(csv, Objects.requireNonNull(timeouts, "The timeouts can't be null."), 1); }  static void write(Path csv, List<CalibrationTimeout> timeouts); static void write(Path csv, List<CalibrationTimeout> timeouts, int numberOfIteration); static List<CalibrationTimeout> read(Path csv);  }
@Test public void testWriteToCSV() throws Exception { ArrayList<CalibrationTimeout> calibrationTimeouts = new ArrayList<>(); calibrationTimeouts.add(new CalibrationTimeout(timeout)); CSV.write(csv, calibrationTimeouts); }
@Test public void testWriteToCSVDoesNotExits() throws Exception { FileTasks.deleteFile(csv); ArrayList<CalibrationTimeout> calibrationTimeouts = new ArrayList<>(); calibrationTimeouts.add(new CalibrationTimeout(timeout)); CSV.write(csv, calibrationTimeouts); }