Package com.epages.restdocs
Class WireMockDocumentation
- java.lang.Object
-
- com.epages.restdocs.WireMockDocumentation
-
public abstract class WireMockDocumentation extends java.lang.ObjectWrapper around the static API fromMockMvcRestDocumentation, to integrate generation of WireMock stubs. Most of the static API was deprecated in 0.6.x and removed in 0.7.0.
-
-
Constructor Summary
Constructors Constructor Description WireMockDocumentation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResponseFieldTemplateDescriptoridFieldReplacedWithPathParameterValue()Convenience factory method for the common use case of replacing the id with the path parameter Assumes that the id field can be found at the fieldidand the path contains the id at the second positionstatic ResponseFieldTemplateDescriptortemplatedResponseField(java.lang.String path)static org.springframework.restdocs.snippet.SnippetwiremockJson(ResponseFieldTemplateDescriptor... responseFieldTemplateDescriptors)Returns a jsonSnippetthat will generate the WireMock stub from the API operation.
-
-
-
Method Detail
-
wiremockJson
public static org.springframework.restdocs.snippet.Snippet wiremockJson(ResponseFieldTemplateDescriptor... responseFieldTemplateDescriptors)
Returns a jsonSnippetthat will generate the WireMock stub from the API operation.- Returns:
- the json snippet
-
idFieldReplacedWithPathParameterValue
public static ResponseFieldTemplateDescriptor idFieldReplacedWithPathParameterValue()
Convenience factory method for the common use case of replacing the id with the path parameter Assumes that the id field can be found at the fieldidand the path contains the id at the second position
-
templatedResponseField
public static ResponseFieldTemplateDescriptor templatedResponseField(java.lang.String path)
-
-