public class ValidatedWireMockRule
extends com.github.tomakehurst.wiremock.junit.WireMockRule
WireMockRule that adds support for validating the request/response
interactions against an OpenAPI / Swagger specification.
If a validation failure is found, will throw a
OpenApiValidationListener.OpenApiValidationException that will
fail the test.
OpenApiValidationListener| Constructor and Description |
|---|
ValidatedWireMockRule(OpenApiInteractionValidator validator) |
ValidatedWireMockRule(OpenApiInteractionValidator validator,
int port) |
ValidatedWireMockRule(OpenApiInteractionValidator validator,
int port,
Integer httpsPort) |
ValidatedWireMockRule(OpenApiInteractionValidator validator,
com.github.tomakehurst.wiremock.core.Options options) |
ValidatedWireMockRule(OpenApiInteractionValidator validator,
com.github.tomakehurst.wiremock.core.Options options,
boolean failOnUnmatchedStubs) |
ValidatedWireMockRule(String specUrlOrPayload) |
ValidatedWireMockRule(String specUrlOrPayload,
int port) |
ValidatedWireMockRule(String specUrlOrPayload,
int port,
Integer httpsPort) |
ValidatedWireMockRule(String specUrlOrPayload,
com.github.tomakehurst.wiremock.core.Options options) |
ValidatedWireMockRule(String specUrlOrPayload,
com.github.tomakehurst.wiremock.core.Options options,
boolean failOnUnmatchedStubs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
addMockServiceRequestListener, addStubMapping, baseUrl, countRequestsMatching, editStub, editStubMapping, enableRecordMappings, findAll, findAllNearMissesFor, findAllStubsByMetadata, findAllUnmatchedRequests, findNearMissesFor, findNearMissesForAllUnmatchedRequests, findNearMissesForUnmatchedRequests, findRequestsMatching, findStubMappingsByMetadata, findTopNearMissesFor, findTopNearMissesFor, findUnmatchedRequests, getAllScenarios, getAllServeEvents, getGlobalSettings, getGlobalSettingsHolder, getOptions, getRecordingStatus, getServedStub, getServeEvents, getSingleStubMapping, getStubMapping, getStubMappings, givenThat, httpsPort, importStubs, isRunning, listAllStubMappings, loadMappingsUsing, port, removeServeEvent, removeServeEventsForStubsMatchingMetadata, removeServeEventsMatching, removeStub, removeStub, removeStubMapping, removeStubMappingsByMetadata, removeStubsByMetadata, resetAll, resetMappings, resetRequests, resetScenarios, resetToDefaultMappings, saveMappings, setGlobalFixedDelay, shutdown, shutdownServer, snapshotRecord, snapshotRecord, snapshotRecord, start, startRecording, startRecording, startRecording, stop, stopRecording, stubFor, updateGlobalSettings, url, verify, verifypublic ValidatedWireMockRule(String specUrlOrPayload, com.github.tomakehurst.wiremock.core.Options options)
public ValidatedWireMockRule(OpenApiInteractionValidator validator, com.github.tomakehurst.wiremock.core.Options options)
public ValidatedWireMockRule(String specUrlOrPayload, com.github.tomakehurst.wiremock.core.Options options, boolean failOnUnmatchedStubs)
public ValidatedWireMockRule(OpenApiInteractionValidator validator, com.github.tomakehurst.wiremock.core.Options options, boolean failOnUnmatchedStubs)
public ValidatedWireMockRule(String specUrlOrPayload, int port)
public ValidatedWireMockRule(OpenApiInteractionValidator validator, int port)
public ValidatedWireMockRule(String specUrlOrPayload, int port, Integer httpsPort)
public ValidatedWireMockRule(OpenApiInteractionValidator validator, int port, Integer httpsPort)
public ValidatedWireMockRule(String specUrlOrPayload)
public ValidatedWireMockRule(OpenApiInteractionValidator validator)
Copyright © 2016–2019 Atlassian. All rights reserved.