@Test public void testCancelFlow() throws TransactionExecutionException { FlowLog flowLog = new FlowLog(); flowLog.setResourceId(1L); flowLog.setFlowId("flowid"); underTest.cancelFlow(flowLog); verify(flow2Handler, times(1)).cancelFlow(flowLog.getResourceId(), flowLog.getFlowId()); }
public void cancelFlow(FlowLog flowLog) throws TransactionExecutionException { LOGGER.debug("Cancel flow [{}] for resource [{}]. FlowType: [{}] Current state: [{}]", flowLog.getFlowId(), flowLog.getResourceId(), flowLog.getFlowType(), flowLog.getCurrentState()); flow2Handler.cancelFlow(flowLog.getResourceId(), flowLog.getFlowId()); }
FlowCancelService { public void cancelFlow(FlowLog flowLog) throws TransactionExecutionException { LOGGER.debug("Cancel flow [{}] for resource [{}]. FlowType: [{}] Current state: [{}]", flowLog.getFlowId(), flowLog.getResourceId(), flowLog.getFlowType(), flowLog.getCurrentState()); flow2Handler.cancelFlow(flowLog.getResourceId(), flowLog.getFlowId()); } }
FlowCancelService { public void cancelFlow(FlowLog flowLog) throws TransactionExecutionException { LOGGER.debug("Cancel flow [{}] for resource [{}]. FlowType: [{}] Current state: [{}]", flowLog.getFlowId(), flowLog.getResourceId(), flowLog.getFlowType(), flowLog.getCurrentState()); flow2Handler.cancelFlow(flowLog.getResourceId(), flowLog.getFlowId()); }  }
FlowCancelService { public void cancelFlow(FlowLog flowLog) throws TransactionExecutionException { LOGGER.debug("Cancel flow [{}] for resource [{}]. FlowType: [{}] Current state: [{}]", flowLog.getFlowId(), flowLog.getResourceId(), flowLog.getFlowType(), flowLog.getCurrentState()); flow2Handler.cancelFlow(flowLog.getResourceId(), flowLog.getFlowId()); }  void cancelRunningFlows(Long resourceId); void cancelFlowSilently(FlowLog flowLog); void cancelFlow(FlowLog flowLog); void cancelTooOldTerminationFlowForResource(Long stackId, String stackName); }
FlowCancelService { public void cancelFlow(FlowLog flowLog) throws TransactionExecutionException { LOGGER.debug("Cancel flow [{}] for resource [{}]. FlowType: [{}] Current state: [{}]", flowLog.getFlowId(), flowLog.getResourceId(), flowLog.getFlowType(), flowLog.getCurrentState()); flow2Handler.cancelFlow(flowLog.getResourceId(), flowLog.getFlowId()); }  void cancelRunningFlows(Long resourceId); void cancelFlowSilently(FlowLog flowLog); void cancelFlow(FlowLog flowLog); void cancelTooOldTerminationFlowForResource(Long stackId, String stackName);  }