Class WireMockWebTestClientConfiguration
- java.lang.Object
-
- org.springframework.cloud.contract.wiremock.restdocs.WireMockWebTestClientConfiguration
-
- All Implemented Interfaces:
org.springframework.boot.test.autoconfigure.restdocs.RestDocsWebTestClientConfigurationCustomizer
@Configuration(proxyBeanMethods=false) @ConditionalOnClass(org.springframework.restdocs.webtestclient.WebTestClientRestDocumentationConfigurer.class) public class WireMockWebTestClientConfiguration extends Object implements org.springframework.boot.test.autoconfigure.restdocs.RestDocsWebTestClientConfigurationCustomizer
Custom configuration for Spring RestDocs that adds a WireMock snippet (for generating JSON stubs). Applied automatically if you use@AutoConfigureRestDocsin 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:
for a convenient entry point for customizing and asserting the stub behaviour
-
-
Constructor Summary
Constructors Constructor Description WireMockWebTestClientConfiguration(org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(org.springframework.restdocs.webtestclient.WebTestClientRestDocumentationConfigurer configurer)
-