top10: 1.2.1 - `Top10ApplicationIT` asserts type-mapping for output-data
authorKai Moritz <kai@juplo.de>
Sat, 8 Jun 2024 16:18:41 +0000 (18:18 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 8 Jun 2024 17:35:48 +0000 (19:35 +0200)
src/test/java/de/juplo/kafka/wordcount/top10/Top10ApplicationIT.java

index 5e1f45c..ea8fe18 100644 (file)
@@ -38,9 +38,7 @@ import static org.awaitility.Awaitility.await;
                                "spring.kafka.consumer.auto-offset-reset=earliest",
                                "spring.kafka.consumer.key-deserializer=org.springframework.kafka.support.serializer.JsonDeserializer",
                                "spring.kafka.consumer.value-deserializer=org.springframework.kafka.support.serializer.JsonDeserializer",
-                               "spring.kafka.consumer.properties.spring.json.use.type.headers=false",
-                               "spring.kafka.consumer.properties.spring.json.key.default.type=de.juplo.kafka.wordcount.query.TestUser",
-                               "spring.kafka.consumer.properties.spring.json.value.default.type=de.juplo.kafka.wordcount.query.TestRanking",
+                               "spring.kafka.consumer.properties.spring.json.type.mapping=user:de.juplo.kafka.wordcount.query.TestUser,ranking:de.juplo.kafka.wordcount.query.TestRanking",
                                "logging.level.root=WARN",
                                "logging.level.de.juplo=DEBUG",
                                "logging.level.org.apache.kafka.clients=INFO",