PlanningLoader { public void loadFiles(boolean today) { interestingDates = Arrays.asList(LocalDate.now(), LocalDate.now().plusDays(1)); Log.send(LogCode.PLANNING_STARTED_LOADING, "Started loading"); LOGGER.info("Starting to load calendar files"); handleFiles(Paths.get(Configuration.getKv7CalendarPath()), this::getCalendar); LOGGER.info("Starting to load planning files"); handleFiles(Paths.get(Configuration.getKv7PlanningPath()), this::getPlanning); QuayDataProvider.replace(planningRecords); LineProvider.backup(); DestinationProvider.backup(); TimingPointProvider.backup(); Log.send(LogCode.PLANNING_LOADED, String.format("Loaded %s records for %s and %s", planningRecords.size(), interestingDates.get(0).toString(), interestingDates.get(1).toString())); }  void loadFiles(boolean today);  }
@Test @Ignore public void testPlanningLoader() { Map<String,String> result = PassengerStopAssignmentLoader.load(); if (result.size() > 0) { StopStore.setStore(result); } new PlanningLoader().loadFiles(true); }