@Test public void shouldGetAllForVendor() throws Exception { service.getAllForVendor(4L); verify(repository).getAllForVendor(4L); }
public List<ServiceContract> getAllForVendor(Long vendorId){ return repository.getAllForVendor(vendorId); }
ServiceContractService { public List<ServiceContract> getAllForVendor(Long vendorId){ return repository.getAllForVendor(vendorId); } }
ServiceContractService { public List<ServiceContract> getAllForVendor(Long vendorId){ return repository.getAllForVendor(vendorId); }  }
ServiceContractService { public List<ServiceContract> getAllForVendor(Long vendorId){ return repository.getAllForVendor(vendorId); }  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> getAllForVendor(Long vendorId){ return repository.getAllForVendor(vendorId); }  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);  }