clolov commented on code in PR #14716: URL: https://github.com/apache/kafka/pull/14716#discussion_r1557449127
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamTaskTest.java: ########## @@ -411,25 +384,22 @@ public void seek(final TopicPartition partition, final long offset) { shouldNotSeek.set(new AssertionError("Should not seek")); + @SuppressWarnings("unchecked") final java.util.function.Consumer<Set<TopicPartition>> resetter = - EasyMock.mock(java.util.function.Consumer.class); - resetter.accept(Collections.singleton(partition1)); - EasyMock.expectLastCall(); - EasyMock.replay(resetter); + mock(java.util.function.Consumer.class); + doNothing().when(resetter).accept(Collections.singleton(partition1)); Review Comment: Yeah, that is the main reason why I kept it as a doNothing rather than verification. This being said, I like your solution because it is explicit and in my opinion it is a stronger assertion than relying on StrictStubs, so I will use that one -- 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