cadonna commented on code in PR #12524: URL: https://github.com/apache/kafka/pull/12524#discussion_r976349585
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/StandbyTaskTest.java: ########## @@ -211,32 +205,22 @@ public void shouldThrowIfCommittingOnIllegalState() { @Test public void shouldAlwaysCheckpointStateIfEnforced() { - stateManager.flush(); - EasyMock.expectLastCall().once(); - stateManager.checkpoint(); - EasyMock.expectLastCall().once(); - EasyMock.expect(stateManager.changelogOffsets()).andReturn(Collections.emptyMap()).anyTimes(); - EasyMock.replay(stateManager); + when(stateManager.changelogOffsets()).thenReturn(Collections.emptyMap()); task = createStandbyTask(); task.initializeIfNeeded(); task.maybeCheckpoint(true); - EasyMock.verify(stateManager); + verify(stateManager).checkpoint(); } @Test public void shouldOnlyCheckpointStateWithBigAdvanceIfNotEnforced() { - stateManager.flush(); - EasyMock.expectLastCall().once(); - stateManager.checkpoint(); Review Comment: This call still needs to be verified with `verify(stateManager).checkpoint()` after `verify(stateManager).flush()`. -- 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