Class MockMvcRestDocumentationConfigurer
java.lang.Object
org.springframework.restdocs.config.RestDocumentationConfigurer<MockMvcSnippetConfigurer,MockMvcOperationPreprocessorsConfigurer,MockMvcRestDocumentationConfigurer>
org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer
- All Implemented Interfaces:
MockMvcConfigurer
public final class MockMvcRestDocumentationConfigurer
extends org.springframework.restdocs.config.RestDocumentationConfigurer<MockMvcSnippetConfigurer,MockMvcOperationPreprocessorsConfigurer,MockMvcRestDocumentationConfigurer>
implements MockMvcConfigurer
A MockMvc-specific
RestDocumentationConfigurer
.- Since:
- 1.1.0
- Author:
- Andy Wilkinson, Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterConfigurerAdded
(ConfigurableMockMvcBuilder<?> builder) beforeMockMvcCreated
(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) snippets()
uris()
Returns aUriConfigurer
that can be used to configure the request URIs that will be documented.Methods inherited from class org.springframework.restdocs.config.RestDocumentationConfigurer
apply, templateEngine, writerResolver
-
Method Details
-
uris
Returns aUriConfigurer
that can be used to configure the request URIs that will be documented.- Returns:
- the URI configurer
-
beforeMockMvcCreated
public RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) - Specified by:
beforeMockMvcCreated
in interfaceMockMvcConfigurer
-
afterConfigurerAdded
- Specified by:
afterConfigurerAdded
in interfaceMockMvcConfigurer
-
snippets
- Specified by:
snippets
in classorg.springframework.restdocs.config.RestDocumentationConfigurer<MockMvcSnippetConfigurer,
MockMvcOperationPreprocessorsConfigurer, MockMvcRestDocumentationConfigurer>
-
operationPreprocessors
- Specified by:
operationPreprocessors
in classorg.springframework.restdocs.config.RestDocumentationConfigurer<MockMvcSnippetConfigurer,
MockMvcOperationPreprocessorsConfigurer, MockMvcRestDocumentationConfigurer>
-