lucasbru commented on PR #18809: URL: https://github.com/apache/kafka/pull/18809#issuecomment-2663403671
> I noticed that the tests in the group coordinator do not use the following tag > > ```java > @ExtendWith(MockitoExtension.class) > public class XTest { > ``` > > Without `@ExtendWith(MockitoExtension.class)` mockito does not throw by default when a stubbing is not used and some other feature are not setup. See [javadoc.io/doc/org.mockito/mockito-junit-jupiter/latest/org/mockito/junit/jupiter/MockitoExtension.html](https://javadoc.io/doc/org.mockito/mockito-junit-jupiter/latest/org/mockito/junit/jupiter/MockitoExtension.html) Adding it also means, we need to add a library to the test dependency. In Streams we use that dependency in the tests. No big deal, IMO. I haven't really dug into that, but it sounds like a useful feature to have. We can include this in our next PR -- 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