Class WireMockRule
- java.lang.Object
-
- com.github.tomakehurst.wiremock.WireMockServer
-
- com.github.tomakehurst.wiremock.junit.WireMockRule
-
public class WireMockRule extends WireMockServer implements org.junit.rules.TestRule
-
-
Field Summary
-
Fields inherited from class com.github.tomakehurst.wiremock.WireMockServer
client, options
-
-
Constructor Summary
Constructors Constructor Description WireMockRule()
WireMockRule(int port)
WireMockRule(int port, java.lang.Integer httpsPort)
WireMockRule(Options options)
WireMockRule(Options options, boolean failOnUnmatchedRequests)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
after()
org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
protected void
before()
-
Methods inherited from class com.github.tomakehurst.wiremock.WireMockServer
addMockServiceRequestListener, addStubMapping, baseUrl, checkForUnmatchedRequests, countRequestsMatching, editStub, editStubMapping, enableRecordMappings, findAll, findAllNearMissesFor, findAllStubsByMetadata, findAllUnmatchedRequests, findNearMissesFor, findNearMissesForAllUnmatchedRequests, findNearMissesForUnmatchedRequests, findRequestsMatching, findStubMappingsByMetadata, findTopNearMissesFor, findTopNearMissesFor, findUnmatchedRequests, getAllScenarios, getAllServeEvents, getGlobalSettings, getOptions, getRecordingStatus, getServedStub, getServeEvents, getServeEvents, getSingleStubMapping, getStubMapping, getStubMappings, givenThat, httpsPort, importStubs, isHttpEnabled, isHttpsEnabled, isRunning, listAllStubMappings, loadMappingsUsing, port, removeServeEvent, removeServeEventsForStubsMatchingMetadata, removeServeEventsMatching, removeStub, removeStub, removeStubMapping, removeStubMapping, removeStubMappingsByMetadata, removeStubsByMetadata, resetAll, resetMappings, resetRequests, resetScenario, resetScenarios, resetToDefaultMappings, saveMappings, setGlobalFixedDelay, setScenarioState, shutdown, shutdownServer, snapshotRecord, snapshotRecord, snapshotRecord, start, startRecording, startRecording, startRecording, stop, stopRecording, stubFor, updateGlobalSettings, url, verify, verify, verify
-
-
-
-
Constructor Detail
-
WireMockRule
public WireMockRule(Options options)
-
WireMockRule
public WireMockRule(Options options, boolean failOnUnmatchedRequests)
-
WireMockRule
public WireMockRule(int port)
-
WireMockRule
public WireMockRule(int port, java.lang.Integer httpsPort)
-
WireMockRule
public WireMockRule()
-
-