@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=WireMockConfiguration.class) @PropertyMapping(value="wiremock.server", skip=ON_DEFAULT_VALUE) @AutoConfigureHttpClient @Inherited public @interface AutoConfigureWireMock
Options
to the application
context.Modifier and Type | Optional Element and Description |
---|---|
String[] |
files
The resource locations to use for loading WireMock response bodies.
|
int |
httpsPort
If specified, configures WireMock instance to enable HTTPS on specified
port.
|
int |
port
Configures WireMock instance to listen on specified port.
|
String[] |
stubs
The resource locations to use for loading WireMock mappings.
|
public abstract int port
Set this value to 0 for WireMock to listen to a random port.
public abstract int httpsPort
Set this value to 0 for WireMock to listen to a random port.
public abstract String[] stubs
When none specified, src/test/resources/mappings is used as default location.
To customize the location, this attribute must be set to the directory where mappings are stored.
public abstract String[] files
When none specified, src/test/resources/__files is used as default.
To customize the location, this attribute must be set to the parent directory of __files directory.
Copyright © 2016–2021 Spring. All rights reserved.