Browse Source

Merge pull request #23848 from pdeneve

* pr/23848:
  Update Spring Boot references in testing documentation

Closes gh-23848
pull/23931/head
Stephane Nicoll 5 years ago
parent
commit
e6f92ae2af
  1. 8
      src/docs/asciidoc/testing.adoc

8
src/docs/asciidoc/testing.adoc

@ -6366,7 +6366,7 @@ server.
TIP: Spring Boot provides an option to write full, end-to-end integration tests that TIP: Spring Boot provides an option to write full, end-to-end integration tests that
include a running server. If this is your goal, see the include a running server. If this is your goal, see the
{doc-spring-boot}/html/boot-features-testing.html#boot-features-testing-spring-boot-applications[Spring Boot reference page]. {doc-spring-boot}/html/spring-boot-features.html#boot-features-testing[Spring Boot Reference Guide].
For more information on the differences between out-of-container and end-to-end For more information on the differences between out-of-container and end-to-end
integration tests, see <<spring-mvc-test-vs-end-to-end-integration-tests>>. integration tests, see <<spring-mvc-test-vs-end-to-end-integration-tests>>.
@ -7064,7 +7064,7 @@ responses. Applications that make use of
<<web.adoc#mvc-ann-async-http-streaming,Spring MVC streaming>> options can use the <<web.adoc#mvc-ann-async-http-streaming,Spring MVC streaming>> options can use the
<<testing.adoc#webtestclient-stream,WebTestClient>> to perform end-to-end, integration <<testing.adoc#webtestclient-stream,WebTestClient>> to perform end-to-end, integration
tests against a running server. This is also supported in Spring Boot where you can 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] {doc-spring-boot}/html/spring-boot-features.html#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 with `WebTestClient`. One extra advantage is the ability to use the `StepVerifier` from
project Reactor that allows declaring expectations on a stream of data. project Reactor that allows declaring expectations on a stream of data.
@ -7112,8 +7112,8 @@ Thymeleaf and Freemarker, render HTML to the response body as expected. The same
for rendering JSON, XML, and other formats through `@ResponseBody` methods. for rendering JSON, XML, and other formats through `@ResponseBody` methods.
Alternatively, you may consider the full end-to-end integration testing support from Alternatively, you may consider the full end-to-end integration testing support from
Spring Boot with `@WebIntegrationTest`. See the Spring Boot with `@SpringBootTest`. See the
{doc-spring-boot}/html/boot-features-testing.html#boot-features-testing-spring-boot-applications[Spring Boot Reference Guide]. {doc-spring-boot}/html/spring-boot-features.html#boot-features-testing[Spring Boot Reference Guide].
There are pros and cons for each approach. The options provided in Spring MVC Test are There are pros and cons for each approach. The options provided in Spring MVC Test are
different stops on the scale from classic unit testing to full integration testing. To be different stops on the scale from classic unit testing to full integration testing. To be

Loading…
Cancel
Save