Polish "Align TestRestTemplate Javadoc with documentation"
See gh-21318
This commit is contained in:
parent
f11c030b71
commit
60ff8bafb5
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2020 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -66,13 +66,9 @@ import org.springframework.web.util.UriTemplateHandler;
|
||||||
* <p>
|
* <p>
|
||||||
* If you are using the
|
* If you are using the
|
||||||
* {@link org.springframework.boot.test.context.SpringBootTest @SpringBootTest} annotation
|
* {@link org.springframework.boot.test.context.SpringBootTest @SpringBootTest} annotation
|
||||||
* with
|
* with an embedded server, a {@link TestRestTemplate} is automatically available and can
|
||||||
* {@link org.springframework.boot.test.context.SpringBootTest.WebEnvironment#RANDOM_PORT
|
* be {@code @Autowired} into your test. If you need customizations (for example to adding
|
||||||
* WebEnvironment.RANDOM_PORT} or
|
* additional message converters) use a {@link RestTemplateBuilder} {@code @Bean}.
|
||||||
* {@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
|
||||||
|
|
Loading…
Reference in New Issue