diff --git a/src/docs/asciidoc/testing.adoc b/src/docs/asciidoc/testing.adoc index 487241e726..24ef77934c 100644 --- a/src/docs/asciidoc/testing.adoc +++ b/src/docs/asciidoc/testing.adoc @@ -4943,6 +4943,20 @@ instances, as the following example shows: Registered filters are invoked through the `MockFilterChain` from `spring-test`, and the last filter delegates to the `DispatcherServlet`. + +[[spring-mvc-test-vs-streaming-response]] +===== Streaming Responses + +There are no options built into Spring MVC Test for container-less testing of streaming +responses. Applications that make use of +<> options can use the +<> to perform end-to-end, integration +tests against a running server. This is also supported in Spring Boot where you can +https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-testing-spring-boot-applications-testing-with-running-server[test a running server] +with `WebTestClient`. One extra advantage is the ability to use the `StepVerifier` from +project Reactor that allows declaring expectations on a stream of data. + + [[spring-mvc-test-vs-end-to-end-integration-tests]] ===== Differences Between Out-of-Container and End-to-End Integration Tests diff --git a/src/docs/asciidoc/web/websocket.adoc b/src/docs/asciidoc/web/websocket.adoc index 0fd15c57be..6b59d01666 100644 --- a/src/docs/asciidoc/web/websocket.adoc +++ b/src/docs/asciidoc/web/websocket.adoc @@ -662,8 +662,8 @@ The following example shows how to do so in Java configuration: [subs="verbatim,quotes"] ---- @Configuration - @EnableWebSocket - public class WebSocketConfig implements WebSocketConfigurer { + @EnableWebSocketMessageBroker + public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void registerStompEndpoints(StompEndpointRegistry registry) {