CodeQL library for Java/Kotlin
codeql/java-all 4.2.1-dev (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()