public class ResponseModifyingPreprocessors extends Object
| Constructor and Description |
|---|
ResponseModifyingPreprocessors() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.restdocs.operation.preprocess.OperationPreprocessor |
limitJsonArrayLength(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
For JSON content, cuts the length of all JSON arrays in the response to 3 elements.
|
static org.springframework.restdocs.operation.preprocess.OperationPreprocessor |
replaceBinaryContent()
For binary content, replaces value with "<binary>".
|
static org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor |
shortenContent(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Only modifies the content of a response.
|
public static org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor shortenContent(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Contains replaceBinaryContent(), limitJsonArrayLength(ObjectMapper)
objectMapper - object mapper instancepublic static org.springframework.restdocs.operation.preprocess.OperationPreprocessor replaceBinaryContent()
public static org.springframework.restdocs.operation.preprocess.OperationPreprocessor limitJsonArrayLength(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper - object mapper to useCopyright © 2018 Scalable Capital GmbH. All rights reserved.