Skip to content

Commit 285afe2

Browse files
committed
Fix checkstyle
1 parent 85082ac commit 285afe2

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/WebTestClientAutoConfigurationTests.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,11 @@ void shouldFailWhenDefaultWebHandlerIsNotAvailable() {
8787
void shouldFailWithNeitherDefaultWebHandlerNorWebApplicationContext() {
8888
ClassLoader parentClassLoader = Thread.currentThread().getContextClassLoader();
8989
this.contextRunner.withClassLoader(new FilteredClassLoader(parentClassLoader, WebApplicationContext.class))
90-
.run((context) -> {
91-
assertThat(context).getFailure()
92-
.rootCause()
93-
.isInstanceOf(RuntimeException.class)
94-
.hasMessageStartingWith("Mock WebTestClient support requires")
95-
.hasMessageContaining("WebApplicationContext");
96-
});
90+
.run((context) -> assertThat(context).getFailure()
91+
.rootCause()
92+
.isInstanceOf(RuntimeException.class)
93+
.hasMessageStartingWith("Mock WebTestClient support requires")
94+
.hasMessageContaining("WebApplicationContext"));
9795
}
9896

9997
@Test

0 commit comments

Comments
 (0)