Skip to content

Commit 16d8878

Browse files
wilkinsonaphilwebb
authored andcommitted
Support embedded web environment with @AutoConfigureWebTestClient
Simplify `WebTestClient` testing support by removing the direct context customizer in favor of using `@AutoConfigureWebTestClient`. See gh-46356
1 parent 3bf53f8 commit 16d8878

File tree

41 files changed

+57
-1577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+57
-1577
lines changed

core/spring-boot-test/src/main/java/org/springframework/boot/test/web/reactive/client/WebTestClientContextCustomizer.java

Lines changed: 0 additions & 182 deletions
This file was deleted.

core/spring-boot-test/src/main/java/org/springframework/boot/test/web/reactive/client/WebTestClientContextCustomizerFactory.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

core/spring-boot-test/src/main/resources/META-INF/spring.factories

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizerFacto
66
org.springframework.boot.test.context.filter.annotation.TypeExcludeFiltersContextCustomizerFactory,\
77
org.springframework.boot.test.http.client.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory,\
88
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory,\
9-
org.springframework.boot.test.web.reactive.client.WebTestClientContextCustomizerFactory,\
109
org.springframework.boot.test.web.servlet.client.RestTestClientContextCustomizerFactory
1110

1211
# Application Context Initializers
1312
org.springframework.context.ApplicationContextInitializer=\
14-
org.springframework.boot.test.context.filter.ExcludeFilterApplicationContextInitializer
13+
org.springframework.boot.test.context.filter.ExcludeFilterApplicationContextInitializer

core/spring-boot-test/src/test/java/org/springframework/boot/test/web/reactive/client/WebTestClientContextCustomizerTests.java

Lines changed: 0 additions & 92 deletions
This file was deleted.

integration-test/spring-boot-test-integration-tests/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies {
2828
testImplementation(project(":module:spring-boot-http-codec"))
2929
testImplementation(project(":module:spring-boot-restclient-test"))
3030
testImplementation(project(":module:spring-boot-tomcat"))
31+
testImplementation(project(":module:spring-boot-webflux-test"))
3132
testImplementation(project(":module:spring-boot-web-server"))
3233
testImplementation("io.projectreactor.netty:reactor-netty-http")
3334
testImplementation("org.springframework:spring-webmvc")

integration-test/spring-boot-test-integration-tests/src/test/java/org/springframework/boot/test/web/reactive/client/NoWebTestClientBeanChecker.java

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)