From 11bf817c11a9566baafbe6c20957582d996691d5 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 4 Nov 2020 14:51:00 +0100 Subject: [PATCH] Should work: --- spring-cloud-contract-stub-runner/pom.xml | 5 +++++ .../StubRunnerSpringCloudConsulAutoConfigurationSpec.groovy | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/spring-cloud-contract-stub-runner/pom.xml b/spring-cloud-contract-stub-runner/pom.xml index 4a8e4f37ad..1583a08c6d 100644 --- a/spring-cloud-contract-stub-runner/pom.xml +++ b/spring-cloud-contract-stub-runner/pom.xml @@ -208,6 +208,11 @@ junit-jupiter-api true + + org.springframework.boot + spring-boot-starter-webflux + test + diff --git a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/consul/StubRunnerSpringCloudConsulAutoConfigurationSpec.groovy b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/consul/StubRunnerSpringCloudConsulAutoConfigurationSpec.groovy index 69a29b3a92..3fd6a2e2a1 100644 --- a/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/consul/StubRunnerSpringCloudConsulAutoConfigurationSpec.groovy +++ b/spring-cloud-contract-stub-runner/src/test/groovy/org/springframework/cloud/contract/stubrunner/spring/cloud/consul/StubRunnerSpringCloudConsulAutoConfigurationSpec.groovy @@ -25,7 +25,6 @@ import spock.lang.Specification import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.autoconfigure.EnableAutoConfiguration -import org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration import org.springframework.boot.test.context.SpringBootContextLoader import org.springframework.boot.test.context.SpringBootTest import org.springframework.cloud.client.discovery.EnableDiscoveryClient @@ -39,7 +38,6 @@ import org.springframework.test.context.ContextConfiguration import static org.mockito.BDDMockito.then import static org.mockito.Matchers.argThat import static org.mockito.Mockito.mock - /** * @author Marcin Grzejszczak */ @@ -100,7 +98,7 @@ class StubRunnerSpringCloudConsulAutoConfigurationSpec extends Specification { } @Configuration - @EnableAutoConfiguration(exclude = WebTestClientAutoConfiguration) + @EnableAutoConfiguration @EnableDiscoveryClient static class Config {