@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) @BootstrapWith(value=org.springframework.boot.test.WebAppIntegrationTestContextBootstrapper.class) public @interface WebIntegrationTest
@SpringApplicationConfiguration
,
This annotation can be used as an alternative to @IntegrationTest
and
@WebAppConfiguration
.
IntegrationTest
Modifier and Type | Optional Element and Description |
---|---|
boolean |
randomPort
Convenience attribute that can be used to set a
server.port=0
Environment property which usually triggers listening on a random port. |
String[] |
value
Properties in form key=value that should be added to the Spring
Environment before the test runs. |
public abstract String[] value
Environment
before the test runs.public abstract boolean randomPort
server.port=0
Environment
property which usually triggers listening on a random port.
Often used in conjunction with a @Value("server.local.port")
injected field
on the test.Copyright © 2015 Pivotal Software, Inc.. All rights reserved.