Happend with junit-jupiter 5.12.0 and mockito-junit-jupiter 5.16.0 and 5.15.2.
Solution was to go back to junit-juper 5.11.4, because this seems to be the version that works with the mockito dependency.
In other projects without mockito, the junit-jupiter version 5.12.0 works without problems.