Ensure SpringBootDITEL fails with the original failure

See gh-9534
pull/9758/merge
Danny Thomas 8 years ago committed by Andy Wilkinson
parent 94ea3e8618
commit 2c48087604

@ -44,12 +44,16 @@ public class SpringBootDependencyInjectionTestExecutionListener
super.prepareTestInstance(testContext);
}
catch (Exception ex) {
try {
ApplicationContext context = testContext.getApplicationContext();
if (context instanceof ConfigurableApplicationContext) {
ConditionEvaluationReport report = ConditionEvaluationReport
.get(((ConfigurableApplicationContext) context).getBeanFactory());
System.err.println(new ConditionEvaluationReportMessage(report));
}
}
catch (Exception ignore) {
}
throw ex;
}
}

Loading…
Cancel
Save