Fix Test
This commit is contained in:
@@ -928,6 +928,14 @@ public class EnableKafkaIntegrationTests {
|
||||
};
|
||||
}
|
||||
|
||||
@Bean
|
||||
public KafkaListenerErrorHandler consumeMultiMethodException(MultiListenerBean listener) {
|
||||
return (m, e) -> {
|
||||
listener.errorLatch.countDown();
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static class Listener implements ConsumerSeekAware {
|
||||
@@ -1275,14 +1283,6 @@ public class EnableKafkaIntegrationTests {
|
||||
return latch2;
|
||||
}
|
||||
|
||||
@Bean
|
||||
public KafkaListenerErrorHandler consumeMultiMethodException(MultiListenerBean listener) {
|
||||
return (m, e) -> {
|
||||
listener.errorLatch.countDown();
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@KafkaListener(id = "multi", topics = "annotated8", errorHandler = "consumeMultiMethodException")
|
||||
|
||||
Reference in New Issue
Block a user