@Test public final void test_delete_with_out_kafka() { final List<BudgetReAppropriation> expextedResult = getBudgetReAppropriations(); when(budgetReAppropriationRepository.delete(any(List.class), any(RequestInfo.class))) .thenReturn(expextedResult); final List<BudgetReAppropriation> actualResult = budgetReAppropriationService.delete(expextedResult, errors, requestInfo); assertEquals(expextedResult, actualResult); }
@Transactional public List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors, final RequestInfo requestInfo) { try { validate(budgetReAppropriations, ACTION_DELETE, errors); if (errors.hasErrors()) throw new CustomBindException(errors); } catch (final CustomBindException e) { throw new CustomBindException(errors); } return budgetReAppropriationRepository.delete(budgetReAppropriations, requestInfo); }
BudgetReAppropriationService { @Transactional public List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors, final RequestInfo requestInfo) { try { validate(budgetReAppropriations, ACTION_DELETE, errors); if (errors.hasErrors()) throw new CustomBindException(errors); } catch (final CustomBindException e) { throw new CustomBindException(errors); } return budgetReAppropriationRepository.delete(budgetReAppropriations, requestInfo); } }
BudgetReAppropriationService { @Transactional public List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors, final RequestInfo requestInfo) { try { validate(budgetReAppropriations, ACTION_DELETE, errors); if (errors.hasErrors()) throw new CustomBindException(errors); } catch (final CustomBindException e) { throw new CustomBindException(errors); } return budgetReAppropriationRepository.delete(budgetReAppropriations, requestInfo); } @Autowired  BudgetReAppropriationService(final BudgetReAppropriationRepository budgetReAppropriationRepository,
            final SmartValidator validator, final BudgetDetailRepository budgetDetailRepository); }
BudgetReAppropriationService { @Transactional public List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors, final RequestInfo requestInfo) { try { validate(budgetReAppropriations, ACTION_DELETE, errors); if (errors.hasErrors()) throw new CustomBindException(errors); } catch (final CustomBindException e) { throw new CustomBindException(errors); } return budgetReAppropriationRepository.delete(budgetReAppropriations, requestInfo); } @Autowired  BudgetReAppropriationService(final BudgetReAppropriationRepository budgetReAppropriationRepository,
            final SmartValidator validator, final BudgetDetailRepository budgetDetailRepository); @Transactional List<BudgetReAppropriation> create(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetReAppropriation> update(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors,
            final RequestInfo requestInfo); List<BudgetReAppropriation> fetchRelated(final List<BudgetReAppropriation> budgetreappropriations); Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch); @Transactional BudgetReAppropriation save(final BudgetReAppropriation budgetReAppropriation); @Transactional BudgetReAppropriation update(final BudgetReAppropriation budgetReAppropriation); @Transactional BudgetReAppropriation delete(final BudgetReAppropriation budgetReAppropriation); }
BudgetReAppropriationService { @Transactional public List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors, final RequestInfo requestInfo) { try { validate(budgetReAppropriations, ACTION_DELETE, errors); if (errors.hasErrors()) throw new CustomBindException(errors); } catch (final CustomBindException e) { throw new CustomBindException(errors); } return budgetReAppropriationRepository.delete(budgetReAppropriations, requestInfo); } @Autowired  BudgetReAppropriationService(final BudgetReAppropriationRepository budgetReAppropriationRepository,
            final SmartValidator validator, final BudgetDetailRepository budgetDetailRepository); @Transactional List<BudgetReAppropriation> create(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetReAppropriation> update(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetReAppropriation> delete(List<BudgetReAppropriation> budgetReAppropriations, final BindingResult errors,
            final RequestInfo requestInfo); List<BudgetReAppropriation> fetchRelated(final List<BudgetReAppropriation> budgetreappropriations); Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch); @Transactional BudgetReAppropriation save(final BudgetReAppropriation budgetReAppropriation); @Transactional BudgetReAppropriation update(final BudgetReAppropriation budgetReAppropriation); @Transactional BudgetReAppropriation delete(final BudgetReAppropriation budgetReAppropriation); static final String ACTION_CREATE; static final String ACTION_UPDATE; static final String ACTION_DELETE; static final String ACTION_VIEW; static final String ACTION_EDIT; static final String ACTION_SEARCH; }