Class WireMockRule

java.lang.Object
com.github.tomakehurst.wiremock.WireMockServer
com.github.tomakehurst.wiremock.junit.WireMockRule
All Implemented Interfaces:
Admin, Container, Stubbing, org.junit.rules.TestRule

public class WireMockRule extends WireMockServer implements org.junit.rules.TestRule
  • Constructor Details

    • WireMockRule

      public WireMockRule(Options options)
    • WireMockRule

      public WireMockRule(Options options, boolean failOnUnmatchedRequests)
    • WireMockRule

      public WireMockRule(int port)
    • WireMockRule

      public WireMockRule(int port, Integer httpsPort)
    • WireMockRule

      public WireMockRule()
  • Method Details

    • apply

      public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
      Specified by:
      apply in interface org.junit.rules.TestRule
    • before

      protected void before()
    • after

      protected void after()