Class WireMockClassRule
java.lang.Object
com.github.tomakehurst.wiremock.WireMockServer
com.github.tomakehurst.wiremock.junit.WireMockClassRule
- All Implemented Interfaces:
Admin,Container,Stubbing,org.junit.rules.MethodRule,org.junit.rules.TestRule
public class WireMockClassRule
extends WireMockServer
implements org.junit.rules.MethodRule, org.junit.rules.TestRule
-
Field Summary
Fields inherited from class com.github.tomakehurst.wiremock.WireMockServer
client, options -
Constructor Summary
ConstructorsConstructorDescriptionWireMockClassRule(int port) WireMockClassRule(int port, Integer httpsPort) WireMockClassRule(Options options) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target) protected voidbefore()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
-
WireMockClassRule
-
WireMockClassRule
-
WireMockClassRule
public WireMockClassRule(int port) -
WireMockClassRule
public WireMockClassRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target) - Specified by:
applyin interfaceorg.junit.rules.MethodRule
-
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()
-