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