Skip to content

Commit 60ff8ba

Browse files
committed
Polish "Align TestRestTemplate Javadoc with documentation"
See gh-21318
1 parent f11c030 commit 60ff8ba

File tree

1 file changed

+4
-8
lines changed
  • spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client

1 file changed

+4
-8
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -66,13 +66,9 @@
6666
* <p>
6767
* If you are using the
6868
* {@link org.springframework.boot.test.context.SpringBootTest @SpringBootTest} annotation
69-
* with
70-
* {@link org.springframework.boot.test.context.SpringBootTest.WebEnvironment#RANDOM_PORT
71-
* WebEnvironment.RANDOM_PORT} or
72-
* {@link org.springframework.boot.test.context.SpringBootTest.WebEnvironment#DEFINED_PORT
73-
* WebEnvironment.DEFINED_PORT}, a {@link TestRestTemplate} is automatically available and
74-
* can be {@code @Autowired} into your test. If you need customizations (for example to
75-
* adding additional message converters) use a {@link RestTemplateBuilder} {@code @Bean}.
69+
* with an embedded server, a {@link TestRestTemplate} is automatically available and can
70+
* be {@code @Autowired} into your test. If you need customizations (for example to adding
71+
* additional message converters) use a {@link RestTemplateBuilder} {@code @Bean}.
7672
*
7773
* @author Dave Syer
7874
* @author Phillip Webb

0 commit comments

Comments
 (0)