CodeQL library for Java/Kotlin
codeql/java-all 0.9.0 (changelog, source)
Search

Member predicate MockitoMockInjectedClass::getAMostMockableConstructor

Find the constructor with the greatest number of mockable parameters.

This constructor must have at least one parameter.

Note: If there are multiple constructors with the greatest number of mockable parameters, Mockito will call only one of them, but which one is dependent on the JVM…

Constructor getAMostMockableConstructor()