Skip to content

Commit 82f9491

Browse files
committed
Improve description of TestRestTemplate's Apache client defaults
Closes gh-45842
1 parent 2e423a7 commit 82f9491

File tree

1 file changed

+1
-4
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing

1 file changed

+1
-4
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/test-utilities.adoc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ It provides a fluent API for assertions, unlike javadoc:org.springframework.boot
5353

5454
It is recommended, but not mandatory, to use the Apache HTTP Client (version 5.1 or better).
5555
If you have that on your classpath, the javadoc:org.springframework.boot.test.web.client.TestRestTemplate[] responds by configuring the client appropriately.
56-
If you do use Apache's HTTP client, some additional test-friendly features are enabled:
57-
58-
* Redirects are not followed (so you can assert the response location).
59-
* Cookies are ignored (so the template is stateless).
56+
If you do use Apache's HTTP client it is configured to ignore cookies (so the template is stateless).
6057

6158
javadoc:org.springframework.boot.test.web.client.TestRestTemplate[] can be instantiated directly in your integration tests, as shown in the following example:
6259

0 commit comments

Comments
 (0)