Browse Source

Fix checkstyle

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

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

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

Loading…
Cancel
Save