@Test public void shouldGetAllWithDetails() throws Exception { service.getAllWithDetails(); verify(repository).getAllWithDetails(); }
public List<Donor> getAllWithDetails(){ return donorRepository.getAllWithDetails(); }
DonorService { public List<Donor> getAllWithDetails(){ return donorRepository.getAllWithDetails(); } }
DonorService { public List<Donor> getAllWithDetails(){ return donorRepository.getAllWithDetails(); } @Autowired  DonorService(DonorRepository donorRepository); }
DonorService { public List<Donor> getAllWithDetails(){ return donorRepository.getAllWithDetails(); } @Autowired  DonorService(DonorRepository donorRepository); void save(Donor donor); List<Donor> getAll(); List<Donor> getAllWithDetails(); void removeDonor(Long id); Donor getById(Long donorId); }
DonorService { public List<Donor> getAllWithDetails(){ return donorRepository.getAllWithDetails(); } @Autowired  DonorService(DonorRepository donorRepository); void save(Donor donor); List<Donor> getAll(); List<Donor> getAllWithDetails(); void removeDonor(Long id); Donor getById(Long donorId);  }