@Test public void shouldGetAllForEquipment() throws Exception { service.getAllForEquipment(5L); verify(repository).getAllForEquipment(5L); }
public List<ServiceContract> getAllForEquipment(Long equipmentId){ return repository.getAllForEquipment(equipmentId); }
ServiceContractService { public List<ServiceContract> getAllForEquipment(Long equipmentId){ return repository.getAllForEquipment(equipmentId); } }
ServiceContractService { public List<ServiceContract> getAllForEquipment(Long equipmentId){ return repository.getAllForEquipment(equipmentId); }  }
ServiceContractService { public List<ServiceContract> getAllForEquipment(Long equipmentId){ return repository.getAllForEquipment(equipmentId); }  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> getAllForEquipment(Long equipmentId){ return repository.getAllForEquipment(equipmentId); }  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);  }