@Test public final void test_save() { Recovery expextedResult = getRecoverys().get(0); when(recoveryRepository.save(any(Recovery.class))).thenReturn(expextedResult); Recovery actualResult = recoveryService.save(getRecoverys().get(0)); assertEquals(expextedResult, actualResult); }
@Transactional public Recovery save(Recovery recovery) { return recoveryRepository.save(recovery); }
RecoveryService { @Transactional public Recovery save(Recovery recovery) { return recoveryRepository.save(recovery); } }
RecoveryService { @Transactional public Recovery save(Recovery recovery) { return recoveryRepository.save(recovery); }  }
RecoveryService { @Transactional public Recovery save(Recovery recovery) { return recoveryRepository.save(recovery); }  @Transactional List<Recovery> create(List<Recovery> recoveries, BindingResult errors,
                                 RequestInfo requestInfo); @Transactional List<Recovery> update(List<Recovery> recoveries, BindingResult errors,
                                 RequestInfo requestInfo); List<Recovery> fetchRelated(List<Recovery> recoveries); Pagination<Recovery> search(RecoverySearch recoverySearch, BindingResult errors); @Transactional Recovery save(Recovery recovery); @Transactional Recovery update(Recovery recovery); }
RecoveryService { @Transactional public Recovery save(Recovery recovery) { return recoveryRepository.save(recovery); }  @Transactional List<Recovery> create(List<Recovery> recoveries, BindingResult errors,
                                 RequestInfo requestInfo); @Transactional List<Recovery> update(List<Recovery> recoveries, BindingResult errors,
                                 RequestInfo requestInfo); List<Recovery> fetchRelated(List<Recovery> recoveries); Pagination<Recovery> search(RecoverySearch recoverySearch, BindingResult errors); @Transactional Recovery save(Recovery recovery); @Transactional Recovery update(Recovery recovery);  }