@Step(value = "one of the steps throws a pending exception") public void stepThrowsPending() { throw new StepPendingException("This one Pending"); }
private StepEndState handleStepPendingException(ExecutionToken executionToken, StepToken step, StepPendingException cause) { StepEndState endState; step.setThrowable(cause); step.setMessage(cause.getMessage()); endState = StepEndState.PENDING; executionToken.incrementStepsPending(); log.debug("Step Pending Exception prevented execution"); return endState; } }
@Step("I throw a PendingException then that step is shown pending with the exception message") public void throwAPendingException() { throw new StepPendingException("Hola?"); }
@Step("I throw a PendingException then that step is shown pending with the exception message") public void throwAPendingException() { throw new StepPendingException("Hola?"); }