Skip to content

Commit 87f6206

Browse files
committed
Adapt to the latest Spring for Apache Kafka
* and Apache Kafka Client, respectively
1 parent 2dea91b commit 87f6206

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-integration-kafka/src/test/java/org/springframework/integration/kafka/inbound/MessageSourceIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2023 the original author or authors.
2+
* Copyright 2018-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -133,13 +133,13 @@ public void onPartitionsAssigned(Collection<TopicPartition> partitions) {
133133
assertThat(messageHistory.toString()).isEqualTo("myNullChannel");
134134
received = source.receive();
135135
assertThat(received).isNull();
136-
assertThat(KafkaTestUtils.getPropertyValue(source, "consumer.fetcher.fetchConfig.minBytes")).isEqualTo(2);
136+
assertThat(KafkaTestUtils.getPropertyValue(source, "consumer.delegate.fetcher.fetchConfig.minBytes")).isEqualTo(2);
137137
source.destroy();
138138
template.destroy();
139139
}
140140

141141
@Test
142-
void deserializationErrorIsThrownFromSource() throws Exception {
142+
void deserializationErrorIsThrownFromSource() {
143143
Map<String, Object> consumerProps = KafkaTestUtils.consumerProps(brokers, "testErrorChannelSource", "false");
144144
consumerProps.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, ErrorHandlingDeserializer.class);
145145
consumerProps.put(ErrorHandlingDeserializer.VALUE_DESERIALIZER_CLASS, FailingDeserializer.class);

0 commit comments

Comments
 (0)