@Test void saveAdviceTranslation() { List<AdviceTranslation> adviceTranslations = Collections.singletonList(getAdviceTranslation()); when(adviceTranslationRepo.saveAll(adviceTranslations)).thenReturn(adviceTranslations); adviceTranslationService.saveAdviceTranslation(adviceTranslations); verify(adviceTranslationRepo, times(1)).saveAll(adviceTranslations); }
@Override public List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations) { return adviceTranslationRepo.saveAll(adviceTranslations); }
AdviceTranslationServiceImpl implements AdviceTranslationService { @Override public List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations) { return adviceTranslationRepo.saveAll(adviceTranslations); } }
AdviceTranslationServiceImpl implements AdviceTranslationService { @Override public List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations) { return adviceTranslationRepo.saveAll(adviceTranslations); } @Autowired  AdviceTranslationServiceImpl(AdviceTranslationRepo adviceTranslationRepo,
                                        AdviceServiceImpl adviceService, ModelMapper modelMapper); }
AdviceTranslationServiceImpl implements AdviceTranslationService { @Override public List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations) { return adviceTranslationRepo.saveAll(adviceTranslations); } @Autowired  AdviceTranslationServiceImpl(AdviceTranslationRepo adviceTranslationRepo,
                                        AdviceServiceImpl adviceService, ModelMapper modelMapper); @Override List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations); @Override List<AdviceTranslation> saveAdviceAndAdviceTranslation(AdvicePostDTO advicePostDTO); }
AdviceTranslationServiceImpl implements AdviceTranslationService { @Override public List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations) { return adviceTranslationRepo.saveAll(adviceTranslations); } @Autowired  AdviceTranslationServiceImpl(AdviceTranslationRepo adviceTranslationRepo,
                                        AdviceServiceImpl adviceService, ModelMapper modelMapper); @Override List<AdviceTranslation> saveAdviceTranslation(List<AdviceTranslation> adviceTranslations); @Override List<AdviceTranslation> saveAdviceAndAdviceTranslation(AdvicePostDTO advicePostDTO);  }