T
- result typeS
- stub typepublic abstract class WireMockVerifyHelper<T,S extends WireMockVerifyHelper<T,S>> extends Object
Constructor and Description |
---|
WireMockVerifyHelper() |
Modifier and Type | Method and Description |
---|---|
void |
configure(T result) |
S |
contentType(org.springframework.http.MediaType contentType) |
protected abstract Map<String,Object> |
getConfiguration(T result) |
protected abstract org.springframework.http.MediaType |
getContentType(T result) |
protected abstract byte[] |
getRequestBodyContent(T result) |
protected abstract com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder |
getResponseDefinition(T result) |
protected abstract com.github.tomakehurst.wiremock.http.Request |
getWireMockRequest(T result) |
S |
jsonPath(String expression,
Object... args) |
S |
stub(String name)
Deprecated.
in favour of explicitly calling
andDo(document(name)) |
S |
wiremock(com.github.tomakehurst.wiremock.client.MappingBuilder builder) |
@Deprecated public S stub(String name)
andDo(document(name))
name
- the stub name (ignored)public void configure(T result)
protected abstract com.github.tomakehurst.wiremock.http.Request getWireMockRequest(T result)
protected abstract org.springframework.http.MediaType getContentType(T result)
protected abstract byte[] getRequestBodyContent(T result)
protected abstract com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder getResponseDefinition(T result)
public S wiremock(com.github.tomakehurst.wiremock.client.MappingBuilder builder)
public S contentType(org.springframework.http.MediaType contentType)
Copyright © 2016–2020 Spring. All rights reserved.