@Test public void shouldUpdate() throws Exception { ServiceContract contract = new ServiceContract(); repository.update(contract); verify(mapper).update(contract); }
public void update(ServiceContract value){ mapper.update(value); }
ServiceContractRepository { public void update(ServiceContract value){ mapper.update(value); } }
ServiceContractRepository { public void update(ServiceContract value){ mapper.update(value); }  }
ServiceContractRepository { public void update(ServiceContract value){ mapper.update(value); }  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 void update(ServiceContract value){ mapper.update(value); }  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);  }