@ -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}')