Mockito 4.1.0 ships a new major feature: `@donotmock`. You can now mark classes/interfaces with @ORG.mockito.DoNotMock to disallow mocking with Mockito. For more information, see our documentation: javadoc.io/doc/org.mockit…
2
11
29
0
0
@MockitoJava @donotmock @ORG Nice! Do users have to either add a dependency on the main mockito artifact to their main code, or define their own annotation? Can we have it in a separate artifact instead, mockito-annotations?