mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Add spring-test annotations to auto imports
This commit is contained in:
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…
Reference in New Issue
Block a user