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
Copy file name to clipboardExpand all lines: src/docs/asciidoc/testing.adoc
+14
Original file line number
Diff line number
Diff line change
@@ -5132,6 +5132,20 @@ instances, as the following example shows:
5132
5132
Registered filters are invoked through the `MockFilterChain` from `spring-test`, and the
5133
5133
last filter delegates to the `DispatcherServlet`.
5134
5134
5135
+
5136
+
[[spring-mvc-test-vs-streaming-response]]
5137
+
===== Streaming Responses
5138
+
5139
+
There are no options built into Spring MVC Test for container-less testing of streaming
5140
+
responses. Applications that make use of
5141
+
<<web.adoc#mvc-ann-async-http-streaming,Spring MVC streaming>> options can use the
5142
+
<<testing.adoc#webtestclient-stream,WebTestClient>> to perform end-to-end, integration
5143
+
tests against a running server. This is also supported in Spring Boot where you can
5144
+
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-testing-spring-boot-applications-testing-with-running-server[test a running server]
5145
+
with `WebTestClient`. One extra advantage is the ability to use the `StepVerifier` from
5146
+
project Reactor that allows declaring expectations on a stream of data.
0 commit comments