Skip to content

Commit 5b66417

Browse files
committed
fix
Signed-off-by: wind57 <[email protected]>
1 parent fdae212 commit 5b66417

File tree

17 files changed

+34
-14
lines changed

17 files changed

+34
-14
lines changed

spring-cloud-kubernetes-client-config/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@
104104
<artifactId>spring-boot-starter-aspectj</artifactId>
105105
<scope>test</scope>
106106
</dependency>
107+
<dependency>
108+
<groupId>org.springframework.boot</groupId>
109+
<artifactId>spring-boot-webtestclient</artifactId>
110+
<scope>test</scope>
111+
</dependency>
107112
<dependency>
108113
<groupId>org.mockito</groupId>
109114
<artifactId>mockito-core</artifactId>

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/applications/sources_order/ConfigDataRetryableSourcesOrderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import org.mockito.MockedStatic;
2626
import org.mockito.Mockito;
2727

28-
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
2928
import org.springframework.boot.test.context.SpringBootTest;
29+
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
3030
import org.springframework.cloud.kubernetes.client.KubernetesClientUtils;
3131
import org.springframework.test.context.junit.jupiter.SpringExtension;
3232

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/applications/sources_order/SourcesOrderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import org.junit.jupiter.api.extension.ExtendWith;
3131

3232
import org.springframework.beans.factory.annotation.Autowired;
33-
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
3433
import org.springframework.boot.test.context.SpringBootTest;
34+
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
3535
import org.springframework.test.context.junit.jupiter.SpringExtension;
3636
import org.springframework.test.web.reactive.server.WebTestClient;
3737

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@
5656
<artifactId>spring-boot-restclient</artifactId>
5757
<scope>test</scope>
5858
</dependency>
59+
<dependency>
60+
<groupId>org.springframework.boot</groupId>
61+
<artifactId>spring-boot-restclient</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.springframework.boot</groupId>
66+
<artifactId>spring-boot-resttestclient</artifactId>
67+
<scope>test</scope>
68+
</dependency>
5969
</dependencies>
6070

6171
<profiles>

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/src/test/java/org/springframework/cloud/kubernetes/configserver/it/CompositeKubernetesIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.jupiter.api.Test;
2323

2424
import org.springframework.boot.test.context.SpringBootTest;
25-
import org.springframework.boot.web.server.test.LocalServerPort;
25+
import org.springframework.boot.test.web.server.LocalServerPort;
2626
import org.springframework.cloud.config.environment.Environment;
2727
import org.springframework.cloud.config.environment.PropertySource;
2828
import org.springframework.cloud.config.server.environment.NativeEnvironmentRepository;

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/src/test/java/org/springframework/cloud/kubernetes/configserver/it/ConfigServerIntegration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.junit.jupiter.api.Test;
3434

3535
import org.springframework.beans.factory.annotation.Autowired;
36-
import org.springframework.boot.web.server.test.client.TestRestTemplate;
36+
import org.springframework.boot.resttestclient.TestRestTemplate;
3737
import org.springframework.cloud.config.environment.Environment;
3838
import org.springframework.cloud.config.environment.PropertySource;
3939
import org.springframework.test.context.TestPropertySource;

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-discoveryserver/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
5151
<scope>test</scope>
5252
</dependency>
53+
<dependency>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-webtestclient</artifactId>
56+
<scope>test</scope>
57+
</dependency>
5358
</dependencies>
5459

5560
<profiles>

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-discoveryserver/src/test/java/org/springframework/cloud/kubernetes/discoveryserver/HeartbeatTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import org.mockito.Mockito;
2323

2424
import org.springframework.beans.factory.annotation.Autowired;
25-
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
2625
import org.springframework.boot.test.context.SpringBootTest;
2726
import org.springframework.boot.test.context.TestConfiguration;
27+
import org.springframework.boot.webtestclient.AutoConfigureWebTestClient;
2828
import org.springframework.cloud.client.discovery.event.HeartbeatEvent;
2929
import org.springframework.cloud.kubernetes.client.discovery.KubernetesClientInformerReactiveDiscoveryClient;
3030
import org.springframework.cloud.kubernetes.commons.discovery.EndpointNameAndNamespace;

spring-cloud-kubernetes-fabric8-leader/src/test/java/org/springframework/cloud/kubernetes/fabric8/leader/Fabric8LeaderAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.springframework.boot.SpringBootConfiguration;
2323
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2424
import org.springframework.boot.test.context.SpringBootTest;
25-
import org.springframework.boot.web.server.test.LocalManagementPort;
25+
import org.springframework.boot.test.web.server.LocalManagementPort;
2626
import org.springframework.http.MediaType;
2727
import org.springframework.test.web.reactive.server.WebTestClient;
2828

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/discovery/Fabric8CatalogWatchEndpointSlicesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.boot.test.context.SpringBootTest;
2727
import org.springframework.boot.test.context.TestConfiguration;
2828
import org.springframework.boot.test.system.CapturedOutput;
29-
import org.springframework.boot.web.server.test.LocalServerPort;
29+
import org.springframework.boot.test.web.server.LocalServerPort;
3030
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
3131
import org.springframework.cloud.kubernetes.integration.tests.commons.Images;
3232
import org.springframework.cloud.kubernetes.integration.tests.commons.Phase;

0 commit comments

Comments
 (0)