Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 873 Bytes

feature-webflux-explicit.adoc

File metadata and controls

34 lines (28 loc) · 873 Bytes

WebFlux with Explicit Mode

You can also use WebFlux with the explicit mode in your generated tests to work with WebFlux. The following example shows how to configure using explicit mode:

Maven
<plugin>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-contract-maven-plugin</artifactId>
    <version>${spring-cloud-contract.version}</version>
    <extensions>true</extensions>
    <configuration>
        <testMode>EXPLICIT</testMode>
    </configuration>
</plugin>
Gradle
contracts {
		testMode = 'EXPLICIT'
}

The following {samples_url}/producer_webflux/[example] shows how to set up a base class and RestAssured for Web Flux.