@Test public void shouldUpdateServiceType(){ ServiceType serviceType = new ServiceType(); serviceType.setName("the service type"); repository.update(serviceType); verify(mapper).update(serviceType); }
public void update(ServiceType serviceType){ mapper.update(serviceType); }
ServiceTypeRepository { public void update(ServiceType serviceType){ mapper.update(serviceType); } }
ServiceTypeRepository { public void update(ServiceType serviceType){ mapper.update(serviceType); }  }
ServiceTypeRepository { public void update(ServiceType serviceType){ mapper.update(serviceType); }  ServiceType getById(Long id); List<ServiceType> getAll(); void insert(ServiceType serviceType); void update(ServiceType serviceType); }
ServiceTypeRepository { public void update(ServiceType serviceType){ mapper.update(serviceType); }  ServiceType getById(Long id); List<ServiceType> getAll(); void insert(ServiceType serviceType); void update(ServiceType serviceType);  }