@Test public final void test_search() { final List<BudgetDetail> budgetDetails = getBudgetDetails(); final BudgetDetailSearch budgetDetailSearch = new BudgetDetailSearch(); final Pagination<BudgetDetail> expextedResult = new Pagination<>(); expextedResult.setPagedData(budgetDetails); when(budgetDetailRepository.search(budgetDetailSearch)).thenReturn(expextedResult); final Pagination<BudgetDetail> actualResult = budgetDetailService.search(budgetDetailSearch); assertEquals(expextedResult, actualResult); }
public Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch) { return budgetDetailRepository.search(budgetDetailSearch); }
BudgetDetailService { public Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch) { return budgetDetailRepository.search(budgetDetailSearch); } }
BudgetDetailService { public Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch) { return budgetDetailRepository.search(budgetDetailSearch); }  }
BudgetDetailService { public Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch) { return budgetDetailRepository.search(budgetDetailSearch); }  @Transactional List<BudgetDetail> create(List<BudgetDetail> budgetDetails, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetDetail> update(List<BudgetDetail> budgetDetails, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetDetail> delete(List<BudgetDetail> budgetDetails, final BindingResult errors,
            final RequestInfo requestInfo); List<BudgetDetail> fetchRelated(final List<BudgetDetail> budgetdetails,RequestInfo requestInfo); Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch); @Transactional BudgetDetail save(final BudgetDetail budgetDetail); @Transactional BudgetDetail update(final BudgetDetail budgetDetail); @Transactional BudgetDetail delete(final BudgetDetail budgetDetail); }
BudgetDetailService { public Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch) { return budgetDetailRepository.search(budgetDetailSearch); }  @Transactional List<BudgetDetail> create(List<BudgetDetail> budgetDetails, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetDetail> update(List<BudgetDetail> budgetDetails, final BindingResult errors,
            final RequestInfo requestInfo); @Transactional List<BudgetDetail> delete(List<BudgetDetail> budgetDetails, final BindingResult errors,
            final RequestInfo requestInfo); List<BudgetDetail> fetchRelated(final List<BudgetDetail> budgetdetails,RequestInfo requestInfo); Pagination<BudgetDetail> search(final BudgetDetailSearch budgetDetailSearch); @Transactional BudgetDetail save(final BudgetDetail budgetDetail); @Transactional BudgetDetail update(final BudgetDetail budgetDetail); @Transactional BudgetDetail delete(final BudgetDetail budgetDetail); 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; }