CalibrationTimeoutRepository { public static void clean(){ CALIBRATION_TIMEOUTS.clean(); }  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 testClean() throws Exception { CalibrationTimeoutRepository.addCalibrationTimeout(calibrationTimeout); CalibrationTimeoutRepository.clean(); assertEquals("After cleaning the size should be null.", 0, CalibrationTimeoutRepository.getAllCalibrationTimeouts().size()); }