You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/08/17 15:18:52 UTC

[GitHub] [kafka] C0urante commented on pull request #12524: KAFKA-14133: Replace EasyMock with Mockito in streams test

C0urante commented on PR #12524:
URL: https://github.com/apache/kafka/pull/12524#issuecomment-1218152299

   Hey @mdedetrich--it looks like the issue here is caused by differences in default return values for boxed primitive types between Mockito mocks and EasyMock nice mocks; the former will return 0, but the latter will return null.
   
   Adding `when(storeMetadata.offset()).thenReturn(null);` to the beginning of each of the failing test cases mentioned in the description seems to fix the issue.
   
   I'm not too familiar with the Streams codebase, so probably best to get review from someone else, but if there are any other strange issues that don't seem Streams-specific, let me know!


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