Ensure that CLI-based tests automatically import new TestRestTemplate

See gh-6973
This commit is contained in:
Andy Wilkinson 2016-11-01 13:47:37 +00:00
parent 307fd94b4f
commit ae4b8dc420

View File

@ -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");
}
}