Certain API changes where postponed according to mockito/mockito#1769
As the matter of fact, mockito3 only additionaly is a requirement on java 8.
So we should check for presence of all 1,2 and 3 versions.
|
TreeVisitor<?, ExecutionContext> div = new DependencyInsight("org.mockito", "mockito-*", "[1.1,2.17)", null).getVisitor(); |
Also mentioned on https://davidvlijmincx.com/posts/setting_the_strictness_for_mockito_mocks/
Certain API changes where postponed according to mockito/mockito#1769
As the matter of fact, mockito3 only additionaly is a requirement on java 8.
So we should check for presence of all 1,2 and 3 versions.
rewrite-testing-frameworks/src/main/java/org/openrewrite/java/testing/mockito/RetainStrictnessWarn.java
Line 60 in 386f3d4
Also mentioned on https://davidvlijmincx.com/posts/setting_the_strictness_for_mockito_mocks/