Align TestRestTemplate Javadoc with documentation

See gh-21318
This commit is contained in:
Andrii Hrytsiuk 2020-05-05 21:52:28 +03:00 committed by Stephane Nicoll
parent 15cd0f8ef4
commit f11c030b71
1 changed files with 8 additions and 4 deletions

View File

@ -65,10 +65,14 @@ import org.springframework.web.util.UriTemplateHandler;
* {@link #getRestTemplate()}. * {@link #getRestTemplate()}.
* <p> * <p>
* If you are using the * If you are using the
* {@link org.springframework.boot.test.context.SpringBootTest @SpringBootTest} * {@link org.springframework.boot.test.context.SpringBootTest @SpringBootTest} annotation
* annotation, a {@link TestRestTemplate} is automatically available and can be * with
* {@code @Autowired} into your test. If you need customizations (for example to adding * {@link org.springframework.boot.test.context.SpringBootTest.WebEnvironment#RANDOM_PORT
* additional message converters) use a {@link RestTemplateBuilder} {@code @Bean}. * WebEnvironment.RANDOM_PORT} or
* {@link org.springframework.boot.test.context.SpringBootTest.WebEnvironment#DEFINED_PORT
* WebEnvironment.DEFINED_PORT}, a {@link TestRestTemplate} is automatically available and
* can be {@code @Autowired} into your test. If you need customizations (for example to
* adding additional message converters) use a {@link RestTemplateBuilder} {@code @Bean}.
* *
* @author Dave Syer * @author Dave Syer
* @author Phillip Webb * @author Phillip Webb