Class WireMockRestDocsConfiguration
java.lang.Object
org.springframework.cloud.contract.wiremock.restdocs.WireMockRestDocsConfiguration
- All Implemented Interfaces:
org.springframework.boot.test.autoconfigure.restdocs.RestDocsMockMvcConfigurationCustomizer
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer.class)
public class WireMockRestDocsConfiguration
extends Object
implements org.springframework.boot.test.autoconfigure.restdocs.RestDocsMockMvcConfigurationCustomizer
Custom configuration for Spring RestDocs that adds a WireMock snippet (for generating
JSON stubs). Applied automatically if you use
@AutoConfigureRestDocs
in your test case and this class is available. JSON stubs are generated and added to
the restdocs path under "stubs".- Author:
- Dave Syer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWireMockRestDocsConfiguration(org.springframework.core.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer configurer)
-
Constructor Details
-
WireMockRestDocsConfiguration
public WireMockRestDocsConfiguration(org.springframework.core.env.Environment environment)
-
-
Method Details
-
customize
public void customize(org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer configurer) - Specified by:
customizein interfaceorg.springframework.boot.test.autoconfigure.restdocs.RestDocsMockMvcConfigurationCustomizer
-