@Test public final void test_save() { VoucherSubType expextedResult = getVoucherSubTypes().get(0); when(voucherSubTypeRepository.save(any(VoucherSubType.class))).thenReturn(expextedResult); VoucherSubType actualResult = voucherSubTypeService.save(expextedResult); assertEquals(expextedResult, actualResult); }
@Transactional public VoucherSubType save(VoucherSubType voucherSubType) { return voucherSubTypeRepository.save(voucherSubType); }
VoucherSubTypeService { @Transactional public VoucherSubType save(VoucherSubType voucherSubType) { return voucherSubTypeRepository.save(voucherSubType); } }
VoucherSubTypeService { @Transactional public VoucherSubType save(VoucherSubType voucherSubType) { return voucherSubTypeRepository.save(voucherSubType); } @Autowired  VoucherSubTypeService(
            VoucherSubTypeRepository voucherSubTypeRepository,
            SmartValidator validator); }
VoucherSubTypeService { @Transactional public VoucherSubType save(VoucherSubType voucherSubType) { return voucherSubTypeRepository.save(voucherSubType); } @Autowired  VoucherSubTypeService(
            VoucherSubTypeRepository voucherSubTypeRepository,
            SmartValidator validator); @Transactional List<VoucherSubType> create(List<VoucherSubType> voucherSubTypes,
            BindingResult errors, RequestInfo requestInfo); @Transactional List<VoucherSubType> update(List<VoucherSubType> voucherSubTypes, BindingResult errors, RequestInfo requestInfo); List<VoucherSubType> fetchRelated(
            List<VoucherSubType> voucherSubTypes); @Transactional VoucherSubType save(VoucherSubType voucherSubType); @Transactional VoucherSubType update(VoucherSubType voucherSubType); Pagination<VoucherSubType> search(VoucherSubTypeSearch voucherSubTypeSearch); }
VoucherSubTypeService { @Transactional public VoucherSubType save(VoucherSubType voucherSubType) { return voucherSubTypeRepository.save(voucherSubType); } @Autowired  VoucherSubTypeService(
            VoucherSubTypeRepository voucherSubTypeRepository,
            SmartValidator validator); @Transactional List<VoucherSubType> create(List<VoucherSubType> voucherSubTypes,
            BindingResult errors, RequestInfo requestInfo); @Transactional List<VoucherSubType> update(List<VoucherSubType> voucherSubTypes, BindingResult errors, RequestInfo requestInfo); List<VoucherSubType> fetchRelated(
            List<VoucherSubType> voucherSubTypes); @Transactional VoucherSubType save(VoucherSubType voucherSubType); @Transactional VoucherSubType update(VoucherSubType voucherSubType); Pagination<VoucherSubType> search(VoucherSubTypeSearch voucherSubTypeSearch);  }