|
|
@ -5488,9 +5488,10 @@ public class MyTest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
----
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
If you are using the `@SpringBootTest` annotation, you can just inject a fully configured
|
|
|
|
If you are using the `@SpringBootTest` annotation with `WebEnvironment.RANDOM_PORT` or
|
|
|
|
`TestRestTemplate` and start using it. If necessary, additional customizations can be
|
|
|
|
`WebEnvironment.DEFINED_PORT`, you can just inject a fully configured `TestRestTemplate`
|
|
|
|
applied via the `RestTemplateBuilder` bean:
|
|
|
|
and start using it. If necessary, additional customizations can be applied via the
|
|
|
|
|
|
|
|
`RestTemplateBuilder` bean:
|
|
|
|
|
|
|
|
|
|
|
|
[source,java,indent=0]
|
|
|
|
[source,java,indent=0]
|
|
|
|
----
|
|
|
|
----
|
|
|
|