Skip to content

Commit 848494d

Browse files
committed
Polish 'Introduce 'spring.test.print-condition-evaluation-report' property'
See gh-45268
1 parent 4ea54da commit 848494d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/OnFailureConditionReportContextCustomizerFactory.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ public void onApplicationEvent(ApplicationFailedEvent event) {
9090
}
9191

9292
private static boolean shouldPrintReport(ConfigurableApplicationContext context) {
93-
if (context == null) {
94-
return true;
95-
}
96-
return context.getEnvironment()
93+
return (context == null) || context.getEnvironment()
9794
.getProperty("spring.test.print-condition-evaluation-report", Boolean.class, true);
9895
}
9996

0 commit comments

Comments
 (0)