@Test public void saveTest() { Location genericEntity = new Location(); when(locationRepo.save(genericEntity)).thenReturn(genericEntity); assertEquals(genericEntity, locationService.save(genericEntity)); }
@Override public Location save(Location location) { log.info(LogMessage.IN_SAVE, location); return locationRepo.save(location); }
LocationServiceImpl implements LocationService { @Override public Location save(Location location) { log.info(LogMessage.IN_SAVE, location); return locationRepo.save(location); } }
LocationServiceImpl implements LocationService { @Override public Location save(Location location) { log.info(LogMessage.IN_SAVE, location); return locationRepo.save(location); }  }
LocationServiceImpl implements LocationService { @Override public Location save(Location location) { log.info(LogMessage.IN_SAVE, location); return locationRepo.save(location); }  @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 Location save(Location location) { log.info(LogMessage.IN_SAVE, location); return locationRepo.save(location); }  @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);  }