@Test public void save() { DiscountValue discountValue = new DiscountValue(); when(discountValuesRepo.save(any(DiscountValue.class))).thenReturn(new DiscountValue()); assertEquals(discountValue, discountService.save(discountValue)); }
@Override public DiscountValue save(DiscountValue discountValue) { return repo.save(discountValue); }
DiscountServiceImpl implements DiscountService { @Override public DiscountValue save(DiscountValue discountValue) { return repo.save(discountValue); } }
DiscountServiceImpl implements DiscountService { @Override public DiscountValue save(DiscountValue discountValue) { return repo.save(discountValue); }  }
DiscountServiceImpl implements DiscountService { @Override public DiscountValue save(DiscountValue discountValue) { return repo.save(discountValue); }  @Override DiscountValue save(DiscountValue discountValue); @Override DiscountValue findById(Long id); @Override Set<DiscountValue> findAllByPlaceId(Long placeId); @Override void deleteAllByPlaceId(Long placeId); }
DiscountServiceImpl implements DiscountService { @Override public DiscountValue save(DiscountValue discountValue) { return repo.save(discountValue); }  @Override DiscountValue save(DiscountValue discountValue); @Override DiscountValue findById(Long id); @Override Set<DiscountValue> findAllByPlaceId(Long placeId); @Override void deleteAllByPlaceId(Long placeId);  }