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
Constructors Constructor Description WireMockClassRule()WireMockClassRule(int port)WireMockClassRule(int port, java.lang.Integer httpsPort)WireMockClassRule(Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, java.lang.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, 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
-
WireMockClassRule
public WireMockClassRule(Options options)
-
WireMockClassRule
public WireMockClassRule(int port, java.lang.Integer httpsPort)
-
WireMockClassRule
public WireMockClassRule(int port)
-
WireMockClassRule
public WireMockClassRule()
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, java.lang.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()
-
-