Package com.epages.wiremock.starter
Annotation Type WireMockTest
-
@Retention(RUNTIME) @Documented @Target({TYPE,METHOD}) public @interface WireMockTestTest class annotation enabling a WireMock server in a spring integration test. As a result the following actions are performed.- A bean of type
WireMockServergets put into the application context.- The WireMock server gets started once before running your test class.
- All feign/ribbon-based services get pre-configured to use the WireMock server.
- A new wiremock.port property is set to the port WireMock is running on.
- See Also:
WireMockServer
- A bean of type
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intportSets WireMock to a fixed port.java.lang.String[]ribbonServicesList the names of your ribbon/feign based services.java.lang.StringstubPathSet this property to the root folder of your JSON stubs.
-
-
-
-
stubPath
java.lang.String stubPath
Set this property to the root folder of your JSON stubs. This folder gets looked up on the classpath and can be overwritten on a per-test basis, by repeating theWireMockTestannotation on method level.- Default:
- ""
-
-