junit-team / junit4

A programmer-oriented testing framework for Java.
https://junit.org/junit4
Eclipse Public License 1.0
8.53k stars 3.29k forks source link

Issue in Mocking Java Comparator - For Open JDK 1.8 #1704

Closed PriyankaKeer closed 3 years ago

PriyankaKeer commented 3 years ago

Hi Team,

We are facing issue while mocking Comparator using Mockito. While using below VM argument, we were able to mock the comparator - For JDK 1.8 but the same is failing in Open JDK 1.8. -Djava.util.Arrays.useLegacyMergeSort=true Please Suggest on this.

Thanks in Advance!

marcphilipp commented 3 years ago

This is unrelated to JUnit. Please open an issue for Mockito.