SpringBootTest
with
webEnvironment=RANDOM_PORT
or webEnvironment=DEFINED_PORT
.@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) @BootstrapWith(value=org.springframework.boot.test.WebAppIntegrationTestContextBootstrapper.class) @Deprecated 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
Deprecated.
Convenience attribute that can be used to set a
server.port=0
Environment property which usually triggers listening on a random port. |
String[] |
value
Deprecated.
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 LocalServerPort
injected field on the
test.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.