@Test public void shouldGetAllForFacility() throws Exception { repository.getAllForFacility(3L); verify(mapper).getAllForFacility(3L); }
public List<ServiceContract> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }
ServiceContractRepository { public List<ServiceContract> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); } }
ServiceContractRepository { public List<ServiceContract> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }  }
ServiceContractRepository { public List<ServiceContract> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }  ServiceContract getById(Long id); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); List<ServiceContract> getAll(); void insert(ServiceContract value); void update(ServiceContract value); }
ServiceContractRepository { public List<ServiceContract> getAllForFacility(Long facilityId){ return mapper.getAllForFacility(facilityId); }  ServiceContract getById(Long id); List<ServiceContract> getAllForFacility(Long facilityId); List<ServiceContract> getAllForVendor(Long vendorId); List<ServiceContract> getAllForEquipment(Long equipmentId); List<ServiceContract> getAll(); void insert(ServiceContract value); void update(ServiceContract value);  }