@Test public final void testSave(){ ChartOfAccountDetail expectedResult = getChartOfAccountDetail(); when(chartOfAccountDetailRepository.save(any(ChartOfAccountDetail.class))).thenReturn(expectedResult); final ChartOfAccountDetail actualResult = chartOfAccountDetailService.save(getChartOfAccountDetail()); assertEquals(expectedResult, actualResult); }
@Transactional public ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail) { return chartOfAccountDetailRepository.save(chartOfAccountDetail); }
ChartOfAccountDetailService { @Transactional public ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail) { return chartOfAccountDetailRepository.save(chartOfAccountDetail); } }
ChartOfAccountDetailService { @Transactional public ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail) { return chartOfAccountDetailRepository.save(chartOfAccountDetail); }  }
ChartOfAccountDetailService { @Transactional public ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail) { return chartOfAccountDetailRepository.save(chartOfAccountDetail); }  List<ChartOfAccountDetail> fetchRelated(List<ChartOfAccountDetail> chartofaccountdetails); @Transactional List<ChartOfAccountDetail> add(List<ChartOfAccountDetail> chartofaccountdetails, BindingResult errors); @Transactional List<ChartOfAccountDetail> update(List<ChartOfAccountDetail> chartofaccountdetails, BindingResult errors); void addToQue(ChartOfAccountDetailRequest request); Pagination<ChartOfAccountDetail> search(ChartOfAccountDetailSearch chartOfAccountDetailSearch, BindingResult errors); @Transactional ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail); @Transactional ChartOfAccountDetail update(ChartOfAccountDetail chartOfAccountDetail); }
ChartOfAccountDetailService { @Transactional public ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail) { return chartOfAccountDetailRepository.save(chartOfAccountDetail); }  List<ChartOfAccountDetail> fetchRelated(List<ChartOfAccountDetail> chartofaccountdetails); @Transactional List<ChartOfAccountDetail> add(List<ChartOfAccountDetail> chartofaccountdetails, BindingResult errors); @Transactional List<ChartOfAccountDetail> update(List<ChartOfAccountDetail> chartofaccountdetails, BindingResult errors); void addToQue(ChartOfAccountDetailRequest request); Pagination<ChartOfAccountDetail> search(ChartOfAccountDetailSearch chartOfAccountDetailSearch, BindingResult errors); @Transactional ChartOfAccountDetail save(ChartOfAccountDetail chartOfAccountDetail); @Transactional ChartOfAccountDetail update(ChartOfAccountDetail chartOfAccountDetail);  }