adikou commented on code in PR #23106:
URL: https://github.com/apache/kafka/pull/23106#discussion_r4199098826


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamThreadTest.java:
##########
@@ -366,15 +366,15 @@ public void shouldChangeStateInRebalanceListener(final 
boolean processingThreads
         thread.setStateListener(stateListener);
         assertEquals(StreamThread.State.CREATED, thread.state());
 
-        final ConsumerRebalanceListener rebalanceListener = 
thread.rebalanceListener();
+        final RebalanceListener rebalanceListener = thread.rebalanceListener();
 
         final List<TopicPartition> revokedPartitions;
         final List<TopicPartition> assignedPartitions;
 
         // revoke nothing
         thread.setState(StreamThread.State.STARTING);
         revokedPartitions = Collections.emptyList();
-        rebalanceListener.onPartitionsRevoked(revokedPartitions);
+        rebalanceListener.onPartitionsRevoked(revokedPartitions, null);

Review Comment:
   Good idea. Passing in a mock rebalanceConsumer and verified no interactions 
with it after each test.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to