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