Class Constructors
- java.lang.Object
-
- org.mockito.internal.util.reflection.Constructors
-
public abstract class Constructors extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Constructors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.Constructor<?>
noArgConstructorOf(java.lang.Class<?> classToMock)
Returns the no arg constructor of the type if any.
-
-
-
Method Detail
-
noArgConstructorOf
public static java.lang.reflect.Constructor<?> noArgConstructorOf(java.lang.Class<?> classToMock)
Returns the no arg constructor of the type if any.- Parameters:
classToMock
- The type to look for a no-arg constructor- Returns:
- The no-arg constructor or null if none is declared.
-
-