From 661996471e6c7e07c9409d8579f1bfcff18f095e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 25 Jun 2022 17:21:33 +0200 Subject: [PATCH] Polishing --- .../springframework/test/context/BootstrapUtilsTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java b/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java index 14d45f1b3b3..36035325528 100644 --- a/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java @@ -61,8 +61,8 @@ class BootstrapUtilsTests { @Test void resolveTestContextBootstrapperWithEmptyBootstrapWithAnnotation() { BootstrapContext bootstrapContext = BootstrapTestUtils.buildBootstrapContext(EmptyBootstrapWithAnnotationClass.class, delegate); - assertThatIllegalStateException().isThrownBy(() -> - resolveTestContextBootstrapper(bootstrapContext)) + assertThatIllegalStateException() + .isThrownBy(() -> resolveTestContextBootstrapper(bootstrapContext)) .withMessageContaining("Specify @BootstrapWith's 'value' attribute"); } @@ -70,8 +70,8 @@ class BootstrapUtilsTests { void resolveTestContextBootstrapperWithDoubleMetaBootstrapWithAnnotations() { BootstrapContext bootstrapContext = BootstrapTestUtils.buildBootstrapContext( DoubleMetaAnnotatedBootstrapWithAnnotationClass.class, delegate); - assertThatIllegalStateException().isThrownBy(() -> - resolveTestContextBootstrapper(bootstrapContext)) + assertThatIllegalStateException() + .isThrownBy(() -> resolveTestContextBootstrapper(bootstrapContext)) .withMessageContaining("Configuration error: found multiple declarations of @BootstrapWith") .withMessageContaining(FooBootstrapper.class.getCanonicalName()) .withMessageContaining(BarBootstrapper.class.getCanonicalName());