public class ContractDslSnippet
extends org.springframework.restdocs.snippet.TemplatedSnippet
Snippet that documents the Spring Cloud
Contract Groovy DSL.| Modifier | Constructor and Description |
|---|---|
protected |
ContractDslSnippet()
Creates a new
ContractDslSnippet with no additional attributes. |
protected |
ContractDslSnippet(Map<String,Object> attributes)
Creates a new
ContractDslSnippet with the given additional
attributes that will be included in the model during template rendering. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createModel(org.springframework.restdocs.operation.Operation operation) |
void |
document(org.springframework.restdocs.operation.Operation operation) |
protected ContractDslSnippet()
ContractDslSnippet with no additional attributes.protected Map<String,Object> createModel(org.springframework.restdocs.operation.Operation operation)
createModel in class org.springframework.restdocs.snippet.TemplatedSnippetpublic void document(org.springframework.restdocs.operation.Operation operation)
throws IOException
document in interface org.springframework.restdocs.snippet.Snippetdocument in class org.springframework.restdocs.snippet.TemplatedSnippetIOExceptionCopyright © 2016–2019 Spring. All rights reserved.