You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "clolov (via GitHub)" <gi...@apache.org> on 2023/06/29 12:23:01 UTC

[GitHub] [kafka] clolov commented on a diff in pull request #13932: KAFKA-14133: Migrate ProcessorStateManagerTest and StreamThreadTest to Mockito

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


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamThreadTest.java:
##########
@@ -177,6 +174,9 @@ public class StreamThreadTest {
     @Mock
     private Consumer<byte[], byte[]> mainConsumer;
 
+    @Mock
+    private Consumer<byte[], byte[]> consumer;

Review Comment:
   The reason for moving this here as a field is to not have to use @SuppressWarnings in all the tests because of the type <byte[], byte[]> which isn't picked up easily from the mock() function. If this explanation did not make sense feel free to try the change and you will see what I mean :)



-- 
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-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org