@Test public void findAllTest() { List<OpeningHours> genericEntities = new ArrayList<>(Arrays.asList(new OpeningHours(), new OpeningHours())); when(openHoursRepo.findAll()).thenReturn(genericEntities); List<OpeningHours> foundEntities = openHoursService.findAll(); assertEquals(genericEntities, foundEntities); }
@Override public List<OpeningHours> findAll() { log.info(LogMessage.IN_FIND_ALL); return hoursRepo.findAll(); }
OpenHoursServiceImpl implements OpenHoursService { @Override public List<OpeningHours> findAll() { log.info(LogMessage.IN_FIND_ALL); return hoursRepo.findAll(); } }
OpenHoursServiceImpl implements OpenHoursService { @Override public List<OpeningHours> findAll() { log.info(LogMessage.IN_FIND_ALL); return hoursRepo.findAll(); }  }
OpenHoursServiceImpl implements OpenHoursService { @Override public List<OpeningHours> findAll() { log.info(LogMessage.IN_FIND_ALL); return hoursRepo.findAll(); }  List<OpeningHours> getOpenHoursByPlace(Place place); @Override OpeningHours save(OpeningHours hours); @Override List<OpeningHours> findAll(); @Override OpeningHours findById(Long id); @Override OpeningHours update(Long id, OpeningHours updatedHours); @Override Long deleteById(Long id); @Override Set<OpeningHours> findAllByPlaceId(Long placeId); @Override void deleteAllByPlaceId(Long placeId); }
OpenHoursServiceImpl implements OpenHoursService { @Override public List<OpeningHours> findAll() { log.info(LogMessage.IN_FIND_ALL); return hoursRepo.findAll(); }  List<OpeningHours> getOpenHoursByPlace(Place place); @Override OpeningHours save(OpeningHours hours); @Override List<OpeningHours> findAll(); @Override OpeningHours findById(Long id); @Override OpeningHours update(Long id, OpeningHours updatedHours); @Override Long deleteById(Long id); @Override Set<OpeningHours> findAllByPlaceId(Long placeId); @Override void deleteAllByPlaceId(Long placeId);  }