clolov commented on code in PR #14410:
URL: https://github.com/apache/kafka/pull/14410#discussion_r1366900765


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamsProducerTest.java:
##########
@@ -1173,17 +1126,13 @@ public void 
shouldResetTransactionInitializedOnResetProducer() {
         );
         streamsProducer.initTransaction();
 
-        reset(mockedProducer);
-        mockedProducer.close();
-        mockedProducer.initTransactions();

Review Comment:
   I believe the answer is that `streamsProducer.initTransaction` was called on 
line 1174. In EasyMock world we reset the mock and the counter went back to 
zero. In Mockito world we just keep incrementing the counter hence it gets 
bumped to 2. I am happy with either resetting the mock in Mockito world as well 
or writing a comment. 



-- 
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

Reply via email to