Mockito.verify not behaving properly when using a capture
Summary The issue at hand involves Mockito.verify not behaving as expected when using a capture in conjunction with times(2). This problem arose after upgrading to JDK 21. The test fails when both times(2) and myCaptor.capture() are used, but passes if either is removed. Root Cause The root cause of this issue can be attributed to … Read more