@Test public void shouldGetAll() throws Exception { service.getAll(); verify(repository).getAll(); }
public List<ServiceContract> getAll(){ return repository.getAll(); }
ServiceContractService { public List<ServiceContract> getAll(){ return repository.getAll(); } }
ServiceContractService { public List<ServiceContract> getAll(){ return repository.getAll(); }  }
ServiceContractService { public List<ServiceContract> getAll(){ return repository.getAll(); }  List<ServiceContract> getAll(); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); ServiceContract getById(Long id); void save(ServiceContract contract); }
ServiceContractService { public List<ServiceContract> getAll(){ return repository.getAll(); }  List<ServiceContract> getAll(); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); ServiceContract getById(Long id); void save(ServiceContract contract);  }