@Test public void saveWithSuccessTest() { Mockito.when(developerRepository.save(Mockito.any(Developer.class))).thenReturn(developer); Developer saved = developerService.save(developerDTO); assertEquals(developer, saved); }
@Transactional public Developer save(DeveloperDTO developerDTO) { Developer developer = GenericConverter.mapper(developerDTO, Developer.class); developer = developerRepository.save(developer); return developer; }
DeveloperService { @Transactional public Developer save(DeveloperDTO developerDTO) { Developer developer = GenericConverter.mapper(developerDTO, Developer.class); developer = developerRepository.save(developer); return developer; } }
DeveloperService { @Transactional public Developer save(DeveloperDTO developerDTO) { Developer developer = GenericConverter.mapper(developerDTO, Developer.class); developer = developerRepository.save(developer); return developer; }  }
DeveloperService { @Transactional public Developer save(DeveloperDTO developerDTO) { Developer developer = GenericConverter.mapper(developerDTO, Developer.class); developer = developerRepository.save(developer); return developer; }  Developer find(Long id); Developer login(DeveloperLogin developerLogin); DeveloperPage list(DeveloperDTO developerDTO, PageableDTO pageableDTO); List<Developer> list(DeveloperDTO developerDTO); @Transactional Developer save(DeveloperDTO developerDTO); @Transactional Developer update(Long id, DeveloperDTO developerDTO); @Transactional void delete(Long id); }
DeveloperService { @Transactional public Developer save(DeveloperDTO developerDTO) { Developer developer = GenericConverter.mapper(developerDTO, Developer.class); developer = developerRepository.save(developer); return developer; }  Developer find(Long id); Developer login(DeveloperLogin developerLogin); DeveloperPage list(DeveloperDTO developerDTO, PageableDTO pageableDTO); List<Developer> list(DeveloperDTO developerDTO); @Transactional Developer save(DeveloperDTO developerDTO); @Transactional Developer update(Long id, DeveloperDTO developerDTO); @Transactional void delete(Long id);  }