Add spring-test annotations to auto imports

pull/972/merge
Dave Syer 11 years ago
parent 27b31acd05
commit 05d1a104e4

@ -66,6 +66,7 @@ public class SpringTestCompilerAutoConfiguration extends
imports.addStarImports("org.junit.runner")
.addStarImports("org.springframework.boot.test")
.addStarImports("org.springframework.test.context.junit4")
.addStarImports("org.springframework.test.annotation")
.addImports(
"org.springframework.test.context.web.WebAppConfiguration");
}

@ -1,6 +1,7 @@
@SpringApplicationConfiguration(classes=Application)
@IntegrationTest('server.port:0')
@WebAppConfiguration
@DirtiesContext
class RestTests {
@Value('${local.server.port}')

Loading…
Cancel
Save