Annotation Type WireMockTest


  • @Retention(RUNTIME)
    @Documented
    @Target({TYPE,METHOD})
    public @interface WireMockTest
    Test class annotation enabling a WireMock server in a spring integration test. As a result the following actions are performed.
  • A bean of type WireMockServer gets 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