public class ValidatedWireMockRule
extends com.github.tomakehurst.wiremock.junit.WireMockRule
WireMockRule that adds support for validating the request/response
interactions against a Swagger API specification.
If a validation failure is found, will throw a
SwaggerValidationListener.SwaggerValidationException that will
fail the test.
SwaggerValidationListener| Constructor and Description |
|---|
ValidatedWireMockRule(String swaggerJsonUrl) |
ValidatedWireMockRule(String swaggerJsonUrl,
int port) |
ValidatedWireMockRule(String swaggerJsonUrl,
int port,
Integer httpsPort) |
ValidatedWireMockRule(String swaggerJsonUrl,
com.github.tomakehurst.wiremock.core.Options options) |
ValidatedWireMockRule(String swaggerJsonUrl,
com.github.tomakehurst.wiremock.core.Options options,
boolean failOnUnmatchedStubs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
addMockServiceRequestListener, addStubMapping, countRequestsMatching, editStub, editStubMapping, enableRecordMappings, findAll, findAllNearMissesFor, findAllUnmatchedRequests, findNearMissesFor, findNearMissesForAllUnmatchedRequests, findNearMissesForUnmatchedRequests, findRequestsMatching, findTopNearMissesFor, findTopNearMissesFor, findUnmatchedRequests, getGlobalSettingsHolder, givenThat, givenThat, httpsPort, isRunning, listAllStubMappings, loadMappingsUsing, port, removeStub, removeStubMapping, resetMappings, resetRequests, resetScenarios, resetToDefaultMappings, saveMappings, setGlobalFixedDelay, shutdown, shutdownServer, start, stop, stubFor, stubFor, updateGlobalSettings, verify, verify, verify, verifypublic ValidatedWireMockRule(String swaggerJsonUrl, com.github.tomakehurst.wiremock.core.Options options)
public ValidatedWireMockRule(String swaggerJsonUrl, com.github.tomakehurst.wiremock.core.Options options, boolean failOnUnmatchedStubs)
public ValidatedWireMockRule(String swaggerJsonUrl, int port)
public ValidatedWireMockRule(String swaggerJsonUrl, int port, Integer httpsPort)
public ValidatedWireMockRule(String swaggerJsonUrl)
Copyright © 2016–2017 Atlassian. All rights reserved.