Class ContractDslSnippet
- java.lang.Object
-
- org.springframework.restdocs.snippet.TemplatedSnippet
-
- org.springframework.cloud.contract.wiremock.restdocs.ContractDslSnippet
-
- All Implemented Interfaces:
org.springframework.restdocs.snippet.Snippet
public class ContractDslSnippet extends org.springframework.restdocs.snippet.TemplatedSnippetASnippetthat documents the Spring Cloud Contract Groovy DSL.- Since:
- 1.0.4
- Author:
- Marcin Grzejszczak
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContractDslSnippet()Creates a newContractDslSnippetwith no additional attributes.protectedContractDslSnippet(Map<String,Object> attributes)Creates a newContractDslSnippetwith the given additionalattributesthat will be included in the model during template rendering.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>createModel(org.springframework.restdocs.operation.Operation operation)voiddocument(org.springframework.restdocs.operation.Operation operation)
-
-
-
Method Detail
-
createModel
protected Map<String,Object> createModel(org.springframework.restdocs.operation.Operation operation)
- Specified by:
createModelin classorg.springframework.restdocs.snippet.TemplatedSnippet
-
document
public void document(org.springframework.restdocs.operation.Operation operation) throws IOException- Specified by:
documentin interfaceorg.springframework.restdocs.snippet.Snippet- Overrides:
documentin classorg.springframework.restdocs.snippet.TemplatedSnippet- Throws:
IOException
-
-