/** * The test failed, but not during the execution of a step. * * @param cause the underlying cause of the failure. */ public void testFailed(final Throwable cause) { TestOutcome outcome = getBaseStepListener().getCurrentTestOutcome(); for (StepListener stepListener : getAllListeners()) { try { stepListener.testFailed(outcome, cause); } catch (AbstractMethodError ame) { LOGGER.warn("Caught abstract method error - this seems to be mostly harmless."); } } }
/** * The test failed, but not during the execution of a step. * * @param cause the underlying cause of the failure. */ public void testFailed(final Throwable cause) { TestOutcome outcome = getBaseStepListener().getCurrentTestOutcome(); for (StepListener stepListener : getAllListeners()) { try { stepListener.testFailed(outcome, cause); } catch (AbstractMethodError ame) { LOGGER.warn("Caught abstract method error - this seems to be mostly harmless."); } } }
/** * The test failed, but not during the execution of a step. * * @param cause the underlying cause of the failure. */ public void testFailed(final Throwable cause) { TestOutcome outcome = getBaseStepListener().getCurrentTestOutcome(); for (StepListener stepListener : getAllListeners()) { try { stepListener.testFailed(outcome, cause); } catch (AbstractMethodError ame) { LOGGER.warn("Caught abstract method error - this seems to be mostly harmless."); } } }