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