You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`WebTestClient` can also connect to a live server and perform full end-to-end integration
7700
-
tests. This is also supported in Spring Boot where you can
7701
-
{doc-spring-boot}/html/spring-boot-features.html#boot-features-testing-spring-boot-applications-testing-with-running-server[test a running server].
7673
+
You can use `WebTestClient` to test <<testing/testing-webtestclient.adoc#webtestclient-stream,streaming responses>>
7674
+
such as Server-Sent Events. However, `MockMvcWebTestClient` doesn't support infinite
7675
+
streams because there is no way to cancel the server stream from the client side.
7676
+
To test infinite streams, you'll need to
7677
+
<<testing/testing-webtestclient.adoc#webtestclient-server-config,bind to>> a running server,
7678
+
or when using Spring Boot,
7679
+
{doc-spring-boot}/html/spring-boot-features.html#boot-features-testing-spring-boot-applications-testing-with-running-server[test with a running server].
0 commit comments