@Test public void testShouldUpdateWorkflow(){ when(workflowRepository.updateWorkflow(Matchers.any(MarriageRegnRequest.class))) .thenReturn(new TaskResponse()); mrWorkflowService.updateWorkflow(MarriageRegnRequest.builder().marriageRegn(getMarriageRegn().get(0)) .requestInfo(new RequestInfo()).build()); }
public void updateWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService updateWorkflow marriageRegnRequest"+marriageRegnRequest); TaskResponse taskResponse = workflowRepository.updateWorkflow(marriageRegnRequest); log.info("the taskResponse from workflow update : " + taskResponse); }
MRWorkflowService { public void updateWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService updateWorkflow marriageRegnRequest"+marriageRegnRequest); TaskResponse taskResponse = workflowRepository.updateWorkflow(marriageRegnRequest); log.info("the taskResponse from workflow update : " + taskResponse); } }
MRWorkflowService { public void updateWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService updateWorkflow marriageRegnRequest"+marriageRegnRequest); TaskResponse taskResponse = workflowRepository.updateWorkflow(marriageRegnRequest); log.info("the taskResponse from workflow update : " + taskResponse); }  }
MRWorkflowService { public void updateWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService updateWorkflow marriageRegnRequest"+marriageRegnRequest); TaskResponse taskResponse = workflowRepository.updateWorkflow(marriageRegnRequest); log.info("the taskResponse from workflow update : " + taskResponse); }  void startWorkflow(MarriageRegnRequest marriageRegnRequest); void updateWorkflow(MarriageRegnRequest marriageRegnRequest); }
MRWorkflowService { public void updateWorkflow(MarriageRegnRequest marriageRegnRequest) { log.info("MRWorkflowService updateWorkflow marriageRegnRequest"+marriageRegnRequest); TaskResponse taskResponse = workflowRepository.updateWorkflow(marriageRegnRequest); log.info("the taskResponse from workflow update : " + taskResponse); }  void startWorkflow(MarriageRegnRequest marriageRegnRequest); void updateWorkflow(MarriageRegnRequest marriageRegnRequest);  }