Class WireMockExtension
- java.lang.Object
-
- com.github.tomakehurst.wiremock.WireMockServer
-
- org.sdase.commons.client.jersey.wiremock.testing.WireMockExtension
-
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.core.Admin
,com.github.tomakehurst.wiremock.core.Container
,com.github.tomakehurst.wiremock.junit.Stubbing
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
@Deprecated(since="5", forRemoval=true) public class WireMockExtension extends com.github.tomakehurst.wiremock.WireMockServer implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
Deprecated, for removal: This API element is subject to removal in a future version.This extension will be removed in the next major release. Existing tests using this extension should be migrated toWireMockExtension
which comes with Wiremock. The next major of Dropwizard commons will also upgrade Wiremock from 2.x.x to 3.x.x.Junit 5 replacement forWireMockRule
-
-
Constructor Summary
Constructors Constructor Description WireMockExtension()
Deprecated, for removal: This API element is subject to removal in a future version.Constructor that creates a new instance with dynamic portWireMockExtension(int port)
Deprecated, for removal: This API element is subject to removal in a future version.WireMockExtension(int port, java.lang.Integer httpsPort)
Deprecated, for removal: This API element is subject to removal in a future version.WireMockExtension(com.github.tomakehurst.wiremock.core.Options options)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
Deprecated, for removal: This API element is subject to removal in a future version.void
assertAllRequestsMatched()
Deprecated, for removal: This API element is subject to removal in a future version.void
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
Deprecated, for removal: This API element is subject to removal in a future version.-
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, getGlobalSettingsHolder, 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
-
WireMockExtension
public WireMockExtension()
Deprecated, for removal: This API element is subject to removal in a future version.Constructor that creates a new instance with dynamic port
-
WireMockExtension
public WireMockExtension(com.github.tomakehurst.wiremock.core.Options options)
Deprecated, for removal: This API element is subject to removal in a future version.
-
WireMockExtension
public WireMockExtension(int port)
Deprecated, for removal: This API element is subject to removal in a future version.
-
WireMockExtension
public WireMockExtension(int port, java.lang.Integer httpsPort)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
assertAllRequestsMatched
public void assertAllRequestsMatched()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-