mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Ensure that CLI-based tests automatically import new TestRestTemplate
See gh-6973
This commit is contained in:
parent
307fd94b4f
commit
ae4b8dc420
@ -69,6 +69,7 @@ public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfigurati
|
||||
"org.springframework.boot.test.web.client", "org.springframework.http",
|
||||
"org.springframework.test.context.junit4",
|
||||
"org.springframework.test.annotation").addImports(
|
||||
"org.springframework.boot.test.context.SpringBootTest.WebEnvironment");
|
||||
"org.springframework.boot.test.context.SpringBootTest.WebEnvironment",
|
||||
"org.springframework.boot.test.web.client.TestRestTemplate");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user