Browse Source

Fix checkstyle

pull/47626/head
Moritz Halbritter 2 months ago
parent
commit
285afe2040
  1. 12
      module/spring-boot-webtestclient/src/test/java/org/springframework/boot/webflux/test/autoconfigure/WebTestClientAutoConfigurationTests.java

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

@ -87,13 +87,11 @@ class WebTestClientAutoConfigurationTests {
void shouldFailWithNeitherDefaultWebHandlerNorWebApplicationContext() { void shouldFailWithNeitherDefaultWebHandlerNorWebApplicationContext() {
ClassLoader parentClassLoader = Thread.currentThread().getContextClassLoader(); ClassLoader parentClassLoader = Thread.currentThread().getContextClassLoader();
this.contextRunner.withClassLoader(new FilteredClassLoader(parentClassLoader, WebApplicationContext.class)) this.contextRunner.withClassLoader(new FilteredClassLoader(parentClassLoader, WebApplicationContext.class))
.run((context) -> { .run((context) -> assertThat(context).getFailure()
assertThat(context).getFailure() .rootCause()
.rootCause() .isInstanceOf(RuntimeException.class)
.isInstanceOf(RuntimeException.class) .hasMessageStartingWith("Mock WebTestClient support requires")
.hasMessageStartingWith("Mock WebTestClient support requires") .hasMessageContaining("WebApplicationContext"));
.hasMessageContaining("WebApplicationContext");
});
} }
@Test @Test

Loading…
Cancel
Save