Ensure that CLI-based tests automatically import new TestRestTemplate

See gh-6973
pull/7269/head
Andy Wilkinson 8 years ago
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…
Cancel
Save