Commit 05d1a104 authored by Dave Syer's avatar Dave Syer

Add spring-test annotations to auto imports

parent 27b31acd
...@@ -66,6 +66,7 @@ public class SpringTestCompilerAutoConfiguration extends ...@@ -66,6 +66,7 @@ public class SpringTestCompilerAutoConfiguration extends
imports.addStarImports("org.junit.runner") imports.addStarImports("org.junit.runner")
.addStarImports("org.springframework.boot.test") .addStarImports("org.springframework.boot.test")
.addStarImports("org.springframework.test.context.junit4") .addStarImports("org.springframework.test.context.junit4")
.addStarImports("org.springframework.test.annotation")
.addImports( .addImports(
"org.springframework.test.context.web.WebAppConfiguration"); "org.springframework.test.context.web.WebAppConfiguration");
} }
......
@SpringApplicationConfiguration(classes=Application) @SpringApplicationConfiguration(classes=Application)
@IntegrationTest('server.port:0') @IntegrationTest('server.port:0')
@WebAppConfiguration @WebAppConfiguration
@DirtiesContext
class RestTests { class RestTests {
@Value('${local.server.port}') @Value('${local.server.port}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment