/** * {@inheritDoc} */ @Override public void uncaughtException(Thread thread, Throwable throwable) { if (!conditionSettings.shouldExceptionBeIgnored(throwable)) { uncaughtThrowable.set(throwable); // We shutdown the executor "now" in order to fail the test immediately conditionSettings.getExecutorLifecycle().executeUnexpectedCleanupBehavior(executor); } }
@Override public ConditionEvaluationResult call() throws Exception { try { return conditionEvaluator.eval(delayed); } catch (Throwable e) { if (conditionSettings.shouldExceptionBeIgnored(e)) { return new ConditionEvaluationResult(false, null, e); } return new ConditionEvaluationResult(false, e, null); } } }
/** * {@inheritDoc} */ @Override public void uncaughtException(Thread thread, Throwable throwable) { if (!conditionSettings.shouldExceptionBeIgnored(throwable)) { uncaughtThrowable.set(throwable); // We shutdown the executor "now" in order to fail the test immediately conditionSettings.getExecutorLifecycle().executeUnexpectedCleanupBehavior(executor); } }
@Override public ConditionEvaluationResult call() throws Exception { try { return conditionEvaluator.eval(delayed); } catch (Throwable e) { if (conditionSettings.shouldExceptionBeIgnored(e)) { return new ConditionEvaluationResult(false, null, e); } return new ConditionEvaluationResult(false, e, null); } } }