@Test public final void test_save() { AccountEntity expextedResult = getAccountEntitys().get(0); when(accountEntityRepository.save(any(AccountEntity.class))).thenReturn(expextedResult); AccountEntity actualResult = accountEntityService.save(getAccountEntitys().get(0)); assertEquals(expextedResult, actualResult); }
@Transactional public AccountEntity save(AccountEntity accountEntity) { return accountEntityRepository.save(accountEntity); }
AccountEntityService { @Transactional public AccountEntity save(AccountEntity accountEntity) { return accountEntityRepository.save(accountEntity); } }
AccountEntityService { @Transactional public AccountEntity save(AccountEntity accountEntity) { return accountEntityRepository.save(accountEntity); }  }
AccountEntityService { @Transactional public AccountEntity save(AccountEntity accountEntity) { return accountEntityRepository.save(accountEntity); }  @Transactional List<AccountEntity> create(List<AccountEntity> accountEntities, BindingResult errors, RequestInfo requestInfo); @Transactional List<AccountEntity> update(List<AccountEntity> accountEntities, BindingResult errors, RequestInfo requestInfo); List<AccountEntity> fetchRelated(List<AccountEntity> accountentities); @Transactional List<AccountEntity> add(List<AccountEntity> accountentities, BindingResult errors); @Transactional List<AccountEntity> update(List<AccountEntity> accountentities, BindingResult errors); void addToQue(AccountEntityRequest request); Pagination<AccountEntity> search(AccountEntitySearch accountEntitySearch, BindingResult errors); @Transactional AccountEntity save(AccountEntity accountEntity); @Transactional AccountEntity update(AccountEntity accountEntity); }
AccountEntityService { @Transactional public AccountEntity save(AccountEntity accountEntity) { return accountEntityRepository.save(accountEntity); }  @Transactional List<AccountEntity> create(List<AccountEntity> accountEntities, BindingResult errors, RequestInfo requestInfo); @Transactional List<AccountEntity> update(List<AccountEntity> accountEntities, BindingResult errors, RequestInfo requestInfo); List<AccountEntity> fetchRelated(List<AccountEntity> accountentities); @Transactional List<AccountEntity> add(List<AccountEntity> accountentities, BindingResult errors); @Transactional List<AccountEntity> update(List<AccountEntity> accountentities, BindingResult errors); void addToQue(AccountEntityRequest request); Pagination<AccountEntity> search(AccountEntitySearch accountEntitySearch, BindingResult errors); @Transactional AccountEntity save(AccountEntity accountEntity); @Transactional AccountEntity update(AccountEntity accountEntity);  }