@Test public final void test_save() { final BudgetDetail expextedResult = getBudgetDetails().get(0); when(budgetDetailRepository.save(any(BudgetDetail.class))).thenReturn(expextedResult); final BudgetDetail actualResult = budgetDetailService.save(expextedResult); assertEquals(expextedResult, actualResult); }
@Transactional public BudgetDetail save(final BudgetDetail budgetDetail) { return budgetDetailRepository.save(budgetDetail); }
BudgetDetailService { @Transactional public BudgetDetail save(final BudgetDetail budgetDetail) { return budgetDetailRepository.save(budgetDetail); } }
BudgetDetailService { @Transactional public BudgetDetail save(final BudgetDetail budgetDetail) { return budgetDetailRepository.save(budgetDetail); }  }
BudgetDetailService { @Transactional public BudgetDetail save(final BudgetDetail budgetDetail) { return budgetDetailRepository.save(budgetDetail); }  @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 { @Transactional public BudgetDetail save(final BudgetDetail budgetDetail) { return budgetDetailRepository.save(budgetDetail); }  @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; }