Skip to content

Commit ae58eff

Browse files
committed
Fix Kafka test for latest Spring Retry
1 parent 9ecf7f4 commit ae58eff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2022 the original author or authors.
2+
* Copyright 2018-2023 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.
@@ -56,8 +56,8 @@
5656
import org.springframework.messaging.support.ErrorMessage;
5757
import org.springframework.retry.RetryCallback;
5858
import org.springframework.retry.RetryContext;
59+
import org.springframework.retry.RetryListener;
5960
import org.springframework.retry.backoff.NoBackOffPolicy;
60-
import org.springframework.retry.listener.RetryListenerSupport;
6161
import org.springframework.retry.policy.SimpleRetryPolicy;
6262
import org.springframework.retry.support.RetryTemplate;
6363

@@ -392,7 +392,7 @@ void testInboundRetryErrorRecoverWithoutRecoveryCallback(EmbeddedKafkaBroker emb
392392
retryTemplate.setRetryPolicy(retryPolicy);
393393
retryTemplate.setBackOffPolicy(new NoBackOffPolicy());
394394
final CountDownLatch retryCountLatch = new CountDownLatch(retryPolicy.getMaxAttempts());
395-
retryTemplate.registerListener(new RetryListenerSupport() {
395+
retryTemplate.registerListener(new RetryListener() {
396396

397397
@Override
398398
public <T, E extends Throwable> void onError(RetryContext context, RetryCallback<T, E> callback,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2022 the original author or authors.
2+
* Copyright 2016-2023 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.
@@ -83,7 +83,7 @@
8383
import org.springframework.messaging.support.ErrorMessage;
8484
import org.springframework.retry.RetryCallback;
8585
import org.springframework.retry.RetryContext;
86-
import org.springframework.retry.listener.RetryListenerSupport;
86+
import org.springframework.retry.RetryListener;
8787
import org.springframework.retry.policy.SimpleRetryPolicy;
8888
import org.springframework.retry.support.RetryTemplate;
8989

@@ -310,7 +310,7 @@ protected boolean doSend(Message<?> message, long timeout) {
310310
retryPolicy.setMaxAttempts(2);
311311
retryTemplate.setRetryPolicy(retryPolicy);
312312
final CountDownLatch retryCountLatch = new CountDownLatch(retryPolicy.getMaxAttempts());
313-
retryTemplate.registerListener(new RetryListenerSupport() {
313+
retryTemplate.registerListener(new RetryListener() {
314314

315315
@Override
316316
public <T, E extends Throwable> void onError(RetryContext context, RetryCallback<T, E> callback,

0 commit comments

Comments
 (0)