public void lastStepFailedWith(Throwable testFailureCause) { determineTestFailureCause(testFailureCause); TestStep lastTestStep = testSteps.get(testSteps.size() - 1); lastTestStep.failedWith(new StepFailureException(testFailureCause.getMessage(), testFailureCause)); }
public void lastStepFailedWith(Throwable testFailureCause) { determineTestFailureCause(testFailureCause); TestStep lastTestStep = testSteps.get(testSteps.size() - 1); lastTestStep.failedWith(new StepFailureException(testFailureCause.getMessage(), testFailureCause)); }
public void lastStepFailedWith(Throwable testFailureCause) { determineTestFailureCause(testFailureCause); TestStep lastTestStep = testSteps.get(testSteps.size() - 1); lastTestStep.failedWith(new StepFailureException(testFailureCause.getMessage(), testFailureCause)); }
private void recordFailureDetailsInFailingTestStep(final StepFailure failure) { if (currentStepExists()) { getCurrentStep().failedWith(new StepFailureException(failure.getMessage(), failure.getException())); } }
private void recordFailureDetailsInFailingTestStep(final StepFailure failure) { if (currentStepExists()) { getCurrentStep().failedWith(new StepFailureException(failure.getMessage(), failure.getException())); } }
private void recordFailureDetails(final StepFailure failure) { if (currentStepExists()) { getCurrentStep().failedWith(new StepFailureException(failure.getMessage(), failure.getException())); } if (shouldTagErrors()) { addTagFor(getCurrentTestOutcome()); } lastFailingExample = currentExample; }