From: Kai Moritz Date: Fri, 13 Mar 2026 20:45:45 +0000 (+0100) Subject: Migration Spring-Boot 3.4.1 -> 4.0.2 (consumer/spring-consumer) X-Git-Tag: consumer/spring-consumer--2026-03-22--22-01~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7d5e8f521f2ab0c85a05fcbf972763e4d8f12c2b;p=demos%2Fkafka%2Ftraining Migration Spring-Boot 3.4.1 -> 4.0.2 (consumer/spring-consumer) --- diff --git a/build.gradle b/build.gradle index 4f0a1029..77e61365 100644 --- a/build.gradle +++ b/build.gradle @@ -36,8 +36,8 @@ dependencies { annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' - testImplementation 'org.springframework.kafka:spring-kafka' - testImplementation 'org.springframework.kafka:spring-kafka-test' + testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test' + testImplementation 'org.springframework.boot:spring-boot-starter-kafka-test' testCompileOnly 'org.projectlombok:lombok' testAnnotationProcessor 'org.projectlombok:lombok' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' diff --git a/pom.xml b/pom.xml index 3c65b3f8..d2bf833e 100644 --- a/pom.xml +++ b/pom.xml @@ -54,13 +54,13 @@ test - org.springframework.kafka - spring-kafka + org.springframework.boot + spring-boot-starter-webmvc-test test - org.springframework.kafka - spring-kafka-test + org.springframework.boot + spring-boot-starter-kafka-test test diff --git a/src/test/java/de/juplo/kafka/ApplicationTests.java b/src/test/java/de/juplo/kafka/ApplicationTests.java index ae119bff..61197cbf 100644 --- a/src/test/java/de/juplo/kafka/ApplicationTests.java +++ b/src/test/java/de/juplo/kafka/ApplicationTests.java @@ -2,8 +2,8 @@ package de.juplo.kafka; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc; import org.springframework.kafka.test.context.EmbeddedKafka; import org.springframework.test.web.servlet.MockMvc;