lucasbru commented on code in PR #14930: URL: https://github.com/apache/kafka/pull/14930#discussion_r1423004412
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -1535,6 +1591,11 @@ int callbacks() { return invoker.callbackQueue.size(); } + // Visible for testing + SubscriptionState subscriptions() { + return subscriptions; + } Review Comment: - I can add callback to the constructor that registers the SubscriptionState with the calling context (the test) - I can add another factory to inject our own instance of SubscriptionState -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org