diff --git a/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderTests.java b/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderTests.java index 62e64f2cc..59f925426 100644 --- a/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderTests.java +++ b/spring-cloud-stream-binder-kafka/src/test/java/org/springframework/cloud/stream/binder/kafka/KafkaBinderTests.java @@ -870,8 +870,7 @@ public class KafkaBinderTests extends public void testDlqWithProducerPropertiesSetAtBinderLevel() throws Exception { - KafkaBinderConfigurationProperties binderConfiguration = new KafkaBinderConfigurationProperties( - new TestKafkaProperties()); + KafkaBinderConfigurationProperties binderConfiguration = createConfigurationProperties(); Map consumerProps = new HashMap<>(); consumerProps.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer"); @@ -896,9 +895,9 @@ public class KafkaBinderTests extends DirectChannel moduleInputChannel = createBindableChannel("input", createConsumerBindingProperties(consumerProperties)); - Binding producerBinding = binder.bindProducer("foo.bar-x", + Binding producerBinding = binder.bindProducer("foo.bar", moduleOutputChannel, outputBindingProperties.getProducer()); - Binding consumerBinding = binder.bindConsumer("foo.bar-x", + Binding consumerBinding = binder.bindConsumer("foo.bar", "tdwcapsabl", moduleInputChannel, consumerProperties); // Let the consumer actually bind to the producer before sending a msg @@ -913,7 +912,7 @@ public class KafkaBinderTests extends dlqConsumerProperties.setMaxAttempts(1); Binding dlqConsumerBinding = binder.bindConsumer( - "error.foo.bar-x." + "tdwcapsabl", null, dlqChannel, + "error.foo.bar." + "tdwcapsabl", null, dlqChannel, dlqConsumerProperties); binderBindUnbindLatency();