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


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/TaskManagerTest.java:
##########
@@ -1740,13 +1740,14 @@ public void 
shouldComputeOffsetSumFromCheckpointFileForUninitializedTask() throw
         taskManager.handleRebalanceStart(singleton("topic"));
         final StateMachineTask uninitializedTask = new 
StateMachineTask(taskId00, taskId00Partitions, true);
         expect(activeTaskCreator.createTasks(anyObject(), 
eq(taskId00Assignment))).andStubReturn(singleton(uninitializedTask));
-        
expect(standbyTaskCreator.createTasks(anyObject())).andStubReturn(Collections.emptySet());
-        replay(activeTaskCreator, standbyTaskCreator);
+        replay(activeTaskCreator);
         taskManager.handleAssignment(taskId00Assignment, emptyMap());
 
         assertThat(uninitializedTask.state(), is(State.CREATED));
 
         assertThat(taskManager.getTaskOffsetSums(), is(expectedOffsetSums));
+
+        Mockito.verify(standbyTaskCreator).createTasks(Collections.emptyMap());

Review Comment:
   Oh, I see what you mean. You mean that in the EasyMock version there are no 
calls to
   ```
   verify(standbyTaskCreator)
   ```
   in the these specific tests.
   Yeah, sure, I will change it!



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