Is Mockito compatible with JUnit 6?
Author: YNedderhoffCreated Jan 5, 2026Updated Jun 29, 2026
Hello,
I was wondering if, despite https://github.com/mockito/mockito/pull/3741 not being merged, Mockito is considered compatible with JUnit 6 if I were to use it that way, or if it's locked into 5? If not, especially with https://github.com/mockito/mockito/issues/3777, I am worried that it might otherwise become quite a significant issue for many, many users, considering that Spring 7 requires JUnit 6. So I am just curious.
Thank you for all the great work!
Source: mockito/mockito