Class WireMockVerifyHelper<T, S extends WireMockVerifyHelper<T,S>>

java.lang.Object
org.springframework.cloud.contract.wiremock.restdocs.WireMockVerifyHelper<T,S>
Type Parameters:
T - result type
S - stub type
Direct Known Subclasses:
ContractExchangeHandler, ContractResultHandler

public abstract class WireMockVerifyHelper<T, S extends WireMockVerifyHelper<T,S>> extends Object
Author:
Dave Syer
  • Constructor Details

    • WireMockVerifyHelper

      public WireMockVerifyHelper()
  • Method Details

    • configure

      public void configure(T result)
    • getWireMockRequest

      protected abstract com.github.tomakehurst.wiremock.http.Request getWireMockRequest(T result)
    • getContentType

      protected abstract org.springframework.http.MediaType getContentType(T result)
    • getRequestBodyContent

      protected abstract byte[] getRequestBodyContent(T result)
    • getResponseDefinition

      protected abstract com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder getResponseDefinition(T result)
    • getConfiguration

      protected abstract Map<String,Object> getConfiguration(T result)
    • wiremock

      public S wiremock(com.github.tomakehurst.wiremock.client.MappingBuilder builder)
    • jsonPath

      public S jsonPath(String expression, Object... args)
    • contentType

      public S contentType(org.springframework.http.MediaType contentType)