@Test public void test_should_persist_complaint_record() { final ServiceRequestRecord serviceRequestRecord = ServiceRequestRecord.builder().build(); complaintWriteService.updateOrInsert(serviceRequestRecord); verify(serviceRequestWriteRepository).updateOrInsert(serviceRequestRecord); }
public void updateOrInsert(ServiceRequestRecord serviceRequestRecord) { serviceRequestWriteRepository.updateOrInsert(serviceRequestRecord); }
ServiceRequestWriteService { public void updateOrInsert(ServiceRequestRecord serviceRequestRecord) { serviceRequestWriteRepository.updateOrInsert(serviceRequestRecord); } }
ServiceRequestWriteService { public void updateOrInsert(ServiceRequestRecord serviceRequestRecord) { serviceRequestWriteRepository.updateOrInsert(serviceRequestRecord); } @Autowired  ServiceRequestWriteService(ServiceRequestWriteRepository serviceRequestWriteRepository); }
ServiceRequestWriteService { public void updateOrInsert(ServiceRequestRecord serviceRequestRecord) { serviceRequestWriteRepository.updateOrInsert(serviceRequestRecord); } @Autowired  ServiceRequestWriteService(ServiceRequestWriteRepository serviceRequestWriteRepository); void updateOrInsert(ServiceRequestRecord serviceRequestRecord); }
ServiceRequestWriteService { public void updateOrInsert(ServiceRequestRecord serviceRequestRecord) { serviceRequestWriteRepository.updateOrInsert(serviceRequestRecord); } @Autowired  ServiceRequestWriteService(ServiceRequestWriteRepository serviceRequestWriteRepository); void updateOrInsert(ServiceRequestRecord serviceRequestRecord);  }