From: Kai Moritz Date: Sat, 21 Mar 2026 12:39:21 +0000 (+0100) Subject: Migration Spring-Boot 3.4.1 -> 4.0.2 (consumer/nodlt) X-Git-Tag: consumer/nodlt--2026-03-22--22-01~21 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=b74caaac1ee62cf39e6d7a7721dc2c0e0e246a4e;p=demos%2Fkafka%2Ftraining Migration Spring-Boot 3.4.1 -> 4.0.2 (consumer/nodlt) --- diff --git a/build.gradle b/build.gradle index 6fd9cc94..0745919a 100644 --- a/build.gradle +++ b/build.gradle @@ -38,6 +38,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 f47dafab..d337686b 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,16 @@ spring-boot-starter-kafka-test test + + org.springframework.boot + spring-boot-restclient + test + + + org.springframework.boot + spring-boot-resttestclient + test + com.jayway.jsonpath json-path diff --git a/src/test/java/de/juplo/kafka/ApplicationTests.java b/src/test/java/de/juplo/kafka/ApplicationTests.java index f666b8bd..314535a0 100644 --- a/src/test/java/de/juplo/kafka/ApplicationTests.java +++ b/src/test/java/de/juplo/kafka/ApplicationTests.java @@ -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