@Test public void findAllTest() { List<Location> genericEntities = new ArrayList<>(Arrays.asList(new Location(), new Location())); when(locationRepo.findAll()).thenReturn(genericEntities); List<Location> foundEntities = locationService.findAll(); assertEquals(genericEntities, foundEntities); }
@Override public List<Location> findAll() { log.info(LogMessage.IN_FIND_ALL); return locationRepo.findAll(); }
LocationServiceImpl implements LocationService { @Override public List<Location> findAll() { log.info(LogMessage.IN_FIND_ALL); return locationRepo.findAll(); } }
LocationServiceImpl implements LocationService { @Override public List<Location> findAll() { log.info(LogMessage.IN_FIND_ALL); return locationRepo.findAll(); }  }
LocationServiceImpl implements LocationService { @Override public List<Location> findAll() { log.info(LogMessage.IN_FIND_ALL); return locationRepo.findAll(); }  @Override List<Location> findAll(); @Override Location findById(Long id); @Override Location save(Location location); @Override Location update(Long id, Location location); @Override Long deleteById(Long id); @Override Optional<Location> findByLatAndLng(Double lat, Double lng); }
LocationServiceImpl implements LocationService { @Override public List<Location> findAll() { log.info(LogMessage.IN_FIND_ALL); return locationRepo.findAll(); }  @Override List<Location> findAll(); @Override Location findById(Long id); @Override Location save(Location location); @Override Location update(Long id, Location location); @Override Long deleteById(Long id); @Override Optional<Location> findByLatAndLng(Double lat, Double lng);  }