From: Kai Moritz Date: Thu, 20 Apr 2023 09:06:29 +0000 (+0200) Subject: NEU X-Git-Tag: kafkadata~4 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5b0f5543b2d514baba0fd020adffe410e4b64d4e;p=demos%2Fkafka%2Fchat NEU --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesConfiguration.java b/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesConfiguration.java index 3b4bc164..c157cce3 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesConfiguration.java +++ b/src/test/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaServicesConfiguration.java @@ -68,7 +68,7 @@ public class KafkaServicesConfiguration @Bean Producer chatRoomChannelProducer( - Map defaultProducerProperties, + Map defaultProducerProperties, IntegerSerializer integerSerializer, JsonSerializer chatRoomSerializer) { @@ -93,11 +93,11 @@ public class KafkaServicesConfiguration @Bean Consumer chatRoomChannelConsumer( - Map defaultConsumerProperties, + Map defaultConsumerProperties, IntegerDeserializer integerDeserializer, JsonDeserializer chatRoomDeserializer) { - Map properties = new HashMap<>(); + Map properties = new HashMap<>(defaultConsumerProperties); properties.put( ConsumerConfig.GROUP_ID_CONFIG, "chat_room_channel"); @@ -143,7 +143,7 @@ public class KafkaServicesConfiguration @Bean Producer chatMessageChannelProducer( - Map defaultProducerProperties, + Map defaultProducerProperties, StringSerializer stringSerializer, JsonSerializer messageSerializer) { @@ -168,11 +168,11 @@ public class KafkaServicesConfiguration @Bean Consumer chatMessageChannelConsumer( - Map defaultConsumerProperties, + Map defaultConsumerProperties, StringDeserializer stringDeserializer, JsonDeserializer messageDeserializer) { - Map properties = new HashMap<>(); + Map properties = new HashMap<>(defaultConsumerProperties); properties.put( ConsumerConfig.GROUP_ID_CONFIG, "chat_message_channel"); @@ -196,7 +196,7 @@ public class KafkaServicesConfiguration } @Bean - Map defaultProducerProperties(ChatBackendProperties chatBackendProperties) + Map defaultProducerProperties(ChatBackendProperties chatBackendProperties) { return Map.of( ProducerConfig.CLIENT_ID_CONFIG, @@ -206,7 +206,7 @@ public class KafkaServicesConfiguration } @Bean - Map defaultConsumerProperties(ChatBackendProperties chatBackendProperties) + Map defaultConsumerProperties(ChatBackendProperties chatBackendProperties) { return Map.of( ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG,