Skip to content

Commit 4cea6d5

Browse files
committed
Fix schema registry boot migration
1 parent 36b1328 commit 4cea6d5

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

schema-registry/spring-cloud-stream-schema-registry-core/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
<groupId>com.fasterxml.jackson.core</groupId>
4242
<artifactId>jackson-databind</artifactId>
4343
</dependency>
44+
<dependency>
45+
<groupId>org.springframework.boot</groupId>
46+
<artifactId>spring-boot-starter-data-jdbc-test</artifactId>
47+
<scope>test</scope>
48+
</dependency>
4449
</dependencies>
4550

4651
</project>

schema-registry/spring-cloud-stream-schema-registry-core/src/test/java/org/springframework/cloud/stream/schema/registry/entityScanning/ServerControllerTest.java

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

2121
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
22-
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
22+
import org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureTestDatabase;
2323
import org.springframework.boot.test.context.SpringBootTest;
2424
import org.springframework.cloud.stream.schema.registry.config.SchemaServerConfiguration;
2525
import org.springframework.http.MediaType;

schema-registry/spring-cloud-stream-schema-registry-server/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@
4747
<artifactId>spring-boot-restclient</artifactId>
4848
<scope>test</scope>
4949
</dependency>
50+
<dependency>
51+
<groupId>org.springframework.boot</groupId>
52+
<artifactId>spring-boot-resttestclient</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.springframework.boot</groupId>
57+
<artifactId>spring-boot-webmvc-test</artifactId>
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.springframework.boot</groupId>
62+
<artifactId>spring-boot-webtestclient</artifactId>
63+
</dependency>
5064
</dependencies>
5165

5266

schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.springframework.beans.factory.annotation.Autowired;
3838
import org.springframework.boot.test.context.SpringBootTest;
3939
import org.springframework.boot.web.server.autoconfigure.ServerProperties;
40-
import org.springframework.boot.web.server.test.client.TestRestTemplate;
4140
import org.springframework.cloud.stream.schema.registry.config.SchemaServerProperties;
4241
import org.springframework.cloud.stream.schema.registry.controllers.ServerController;
4342
import org.springframework.cloud.stream.schema.registry.model.Schema;
@@ -57,6 +56,7 @@
5756
import org.springframework.web.client.DefaultResponseErrorHandler;
5857
import org.springframework.web.client.HttpClientErrorException;
5958
import org.springframework.web.util.UriComponentsBuilder;
59+
import org.springframework.boot.resttestclient.TestRestTemplate;
6060

6161
import static java.util.stream.Collectors.toList;
6262
import static org.assertj.core.api.Assertions.assertThat;

0 commit comments

Comments
 (0)