Class WireMockRestAssuredConfiguration

java.lang.Object
org.springframework.cloud.contract.wiremock.restdocs.WireMockRestAssuredConfiguration
All Implemented Interfaces:
org.springframework.boot.test.autoconfigure.restdocs.RestDocsRestAssuredConfigurationCustomizer

@Configuration(proxyBeanMethods=false) @ConditionalOnClass(org.springframework.restdocs.restassured.RestAssuredRestDocumentationConfigurer.class) public class WireMockRestAssuredConfiguration extends Object implements org.springframework.boot.test.autoconfigure.restdocs.RestDocsRestAssuredConfigurationCustomizer
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:
EddĂș MelĂ©ndez, Olga Maciaszek-Sharma
See Also:
  • Constructor Details

    • WireMockRestAssuredConfiguration

      public WireMockRestAssuredConfiguration()
  • Method Details

    • customize

      public void customize(org.springframework.restdocs.restassured.RestAssuredRestDocumentationConfigurer configurer)
      Specified by:
      customize in interface org.springframework.boot.test.autoconfigure.restdocs.RestDocsRestAssuredConfigurationCustomizer