mdedetrich commented on code in PR #12524:
URL: https://github.com/apache/kafka/pull/12524#discussion_r975142135


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StandbyTaskTest.java:
##########
@@ -212,31 +212,29 @@ public void shouldThrowIfCommittingOnIllegalState() {
     @Test
     public void shouldAlwaysCheckpointStateIfEnforced() {
         stateManager.flush();
-        EasyMock.expectLastCall().once();
+        verify(stateManager, times(1)).flush();
         stateManager.checkpoint();
-        EasyMock.expectLastCall().once();
-        
EasyMock.expect(stateManager.changelogOffsets()).andReturn(Collections.emptyMap()).anyTimes();
-        EasyMock.replay(stateManager);
+        verify(stateManager, times(1)).checkpoint();
+        
when(stateManager.changelogOffsets()).thenReturn(Collections.emptyMap());

Review Comment:
   Done



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