public class WireMockExtension extends DslWrapper implements org.junit.jupiter.api.extension.ParameterResolver, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
| Modifier and Type | Class and Description |
|---|---|
static class |
WireMockExtension.Builder |
admin, stubbing| Modifier | Constructor and Description |
|---|---|
|
WireMockExtension() |
protected |
WireMockExtension(Options options,
boolean configureStaticDsl,
boolean failOnUnmatchedRequests,
boolean proxyMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
java.lang.String |
baseUrl() |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
WireMockRuntimeInfo |
getRuntimeInfo() |
static WireMockExtension.Builder |
newInstance() |
java.lang.Object |
resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
boolean |
supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
addStubMapping, countRequestsMatching, editStub, editStubMapping, findAll, findAllNearMissesFor, findAllStubsByMetadata, findAllUnmatchedRequests, findNearMissesFor, findNearMissesForAllUnmatchedRequests, findNearMissesForUnmatchedRequests, findRequestsMatching, findStubMappingsByMetadata, findTopNearMissesFor, findTopNearMissesFor, findUnmatchedRequests, getAllScenarios, getAllServeEvents, getGlobalSettings, getOptions, getRecordingStatus, getServedStub, getServeEvents, getSingleStubMapping, getStubMapping, getStubMappings, givenThat, importStubs, listAllStubMappings, removeServeEvent, removeServeEventsForStubsMatchingMetadata, removeServeEventsMatching, removeStub, removeStub, removeStubMapping, removeStubMappingsByMetadata, removeStubsByMetadata, resetAll, resetMappings, resetRequests, resetScenarios, resetToDefaultMappings, saveMappings, setGlobalFixedDelay, shutdownServer, snapshotRecord, snapshotRecord, snapshotRecord, startRecording, startRecording, startRecording, stopRecording, stubFor, updateGlobalSettings, verify, verify, verifypublic WireMockExtension()
protected WireMockExtension(Options options, boolean configureStaticDsl, boolean failOnUnmatchedRequests, boolean proxyMode)
public static WireMockExtension.Builder newInstance()
public boolean supportsParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws org.junit.jupiter.api.extension.ParameterResolutionException
supportsParameter in interface org.junit.jupiter.api.extension.ParameterResolverorg.junit.jupiter.api.extension.ParameterResolutionExceptionpublic java.lang.Object resolveParameter(org.junit.jupiter.api.extension.ParameterContext parameterContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws org.junit.jupiter.api.extension.ParameterResolutionException
resolveParameter in interface org.junit.jupiter.api.extension.ParameterResolverorg.junit.jupiter.api.extension.ParameterResolutionExceptionpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws java.lang.Exception
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackjava.lang.Exceptionpublic void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws java.lang.Exception
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackjava.lang.Exceptionpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws java.lang.Exception
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackjava.lang.Exceptionpublic void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
throws java.lang.Exception
afterEach in interface org.junit.jupiter.api.extension.AfterEachCallbackjava.lang.Exceptionpublic WireMockRuntimeInfo getRuntimeInfo()
public java.lang.String baseUrl()