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