CalibrationTimeoutRepository { public static HashMap<String, CalibrationTimeout> getAllNonRedundantTimeouts() { return CALIBRATION_TIMEOUTS.getAllNonRedundantTimeouts(); }  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 testGetAllNonRedundantTimeouts() throws Exception { CalibrationTimeoutRepository.addCalibrationTimeout(calibrationTimeout); Thread.sleep(1); CalibrationTimeout calibrationTimeoutTest = new CalibrationTimeout("ode", "deploy", "install", 70_000, 5_000); CalibrationTimeoutRepository.addCalibrationTimeout(calibrationTimeoutTest); HashMap<String, CalibrationTimeout> timeouts = CalibrationTimeoutRepository.getAllNonRedundantTimeouts(); assertEquals("The keys should be equal.", calibrationTimeoutTest.getKey(), timeouts.get(calibrationTimeout.getKey()).getKey()); }