]> juplo.de Git - demos/kafka/training/commitdiff
Migration Spring-Boot 3.4.1 -> 4.0.2 (consumer/nodlt)
authorKai Moritz <kai@juplo.de>
Sat, 21 Mar 2026 12:39:21 +0000 (13:39 +0100)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Fri, 12 Jun 2026 18:50:57 +0000 (18:50 +0000)
build.gradle
pom.xml
src/test/java/de/juplo/kafka/ApplicationTests.java

index 27e08ae64712bfbf2fca79120eeb708ebd0a6fb2..e4f157255e660be95688b9c6efdc7625f19ec76b 100644 (file)
@@ -36,6 +36,8 @@ dependencies {
        testImplementation 'org.springframework.boot:spring-boot-starter-test'
        testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
        testImplementation 'org.springframework.boot:spring-boot-starter-kafka-test'
+       testImplementation 'org.springframework.boot:spring-boot-restclient'
+       testImplementation 'org.springframework.boot:spring-boot-resttestclient'
        testImplementation 'com.jayway.jsonpath:json-path'
        testCompileOnly 'org.projectlombok:lombok'
        testAnnotationProcessor 'org.projectlombok:lombok'
diff --git a/pom.xml b/pom.xml
index e5daf5b78a84a6c819ccde5e83bb942f3c6a42bf..f079a5bd8678d4a58658ab23036c27b3c4f7381a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       <artifactId>spring-boot-starter-kafka-test</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-restclient</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-resttestclient</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>com.jayway.jsonpath</groupId>
       <artifactId>json-path</artifactId>
index f666b8bd4424a2a14cf75d42ab9d5751c869d318..314535a01f68ae5692528cb50e8896107eb5db50 100644 (file)
@@ -4,6 +4,7 @@ import com.jayway.jsonpath.JsonPath;
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.resttestclient.TestRestTemplate;
+import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureTestRestTemplate;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.HttpStatusCode;
@@ -25,6 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
   })
 @DirtiesContext
 @EmbeddedKafka(topics = TOPIC, partitions = NUM_PARTITIONS)
+@AutoConfigureTestRestTemplate
 public class ApplicationTests
 {
   @Test