@Test public final void test_search() { final List<BudgetReAppropriation> budgets = getBudgetReAppropriations(); final BudgetReAppropriationSearch budgetSearch = new BudgetReAppropriationSearch(); final Pagination<BudgetReAppropriation> expextedResult = new Pagination<>(); expextedResult.setPagedData(budgets); when(budgetReAppropriationRepository.search(budgetSearch)).thenReturn(expextedResult); final Pagination<BudgetReAppropriation> actualResult = budgetReAppropriationService.search(budgetSearch); assertEquals(expextedResult, actualResult); }
public Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch) { return budgetReAppropriationRepository.search(budgetReAppropriationSearch); }
BudgetReAppropriationService { public Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch) { return budgetReAppropriationRepository.search(budgetReAppropriationSearch); } }
BudgetReAppropriationService { public Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch) { return budgetReAppropriationRepository.search(budgetReAppropriationSearch); } @Autowired  BudgetReAppropriationService(final BudgetReAppropriationRepository budgetReAppropriationRepository,
            final SmartValidator validator, final BudgetDetailRepository budgetDetailRepository); }
BudgetReAppropriationService { public Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch) { return budgetReAppropriationRepository.search(budgetReAppropriationSearch); } @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 { public Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch budgetReAppropriationSearch) { return budgetReAppropriationRepository.search(budgetReAppropriationSearch); } @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; }