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 TypeMethodDescriptionvoidafterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder) beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) snippets()uris()Returns aUriConfigurerthat 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 aUriConfigurerthat 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:
beforeMockMvcCreatedin interfaceMockMvcConfigurer
-
afterConfigurerAdded
- Specified by:
afterConfigurerAddedin interfaceMockMvcConfigurer
-
snippets
- Specified by:
snippetsin classorg.springframework.restdocs.config.RestDocumentationConfigurer<MockMvcSnippetConfigurer,MockMvcOperationPreprocessorsConfigurer, MockMvcRestDocumentationConfigurer>
-
operationPreprocessors
- Specified by:
operationPreprocessorsin classorg.springframework.restdocs.config.RestDocumentationConfigurer<MockMvcSnippetConfigurer,MockMvcOperationPreprocessorsConfigurer, MockMvcRestDocumentationConfigurer>
-