Class WireMockRule
java.lang.Object
com.github.tomakehurst.wiremock.WireMockServer
com.github.tomakehurst.wiremock.junit.WireMockRule
-
Field Summary
Fields inherited from class com.github.tomakehurst.wiremock.WireMockServer
client, options -
Constructor Summary
ConstructorsConstructorDescriptionWireMockRule(int port) WireMockRule(int port, Integer httpsPort) WireMockRule(Options options) WireMockRule(Options options, boolean failOnUnmatchedRequests) -
Method Summary
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, findUnmatchedStubs, getAllScenarios, getAllServeEvents, getGlobalSettings, getLoadedExtensionNames, getOptions, getRecordingStatus, getServedStub, getServeEvents, getServeEvents, getSingleStubMapping, getStubMapping, getStubMappings, givenThat, httpsPort, importStubs, isHttpEnabled, isHttpsEnabled, isRunning, listAllStubMappings, loadMappingsUsing, port, removeServeEvent, removeServeEventsForStubsMatchingMetadata, removeServeEventsMatching, removeStub, 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 Details
-
WireMockRule
-
WireMockRule
-
WireMockRule
public WireMockRule(int port) -
WireMockRule
-
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:
applyin interfaceorg.junit.rules.TestRule
-
before
protected void before() -
after
protected void after()
-