private void addSchedule(String filename) throws URISyntaxException, IOException { File file = new File(getClass().getResource(filename).toURI()); String scheduleJson = FileUtils.readFileToString(file); scheduleTrackingService.add(scheduleJson); }
private void addSchedule(String path, String filename) throws URISyntaxException, IOException { String scheduleJson = TestScheduleUtil.getScheduleJsonFromFile(bundleContext, path, filename); scheduleTrackingService.add(scheduleJson); }