Class ConstructorFinder
java.lang.Object
org.powermock.reflect.internal.ConstructorFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]private Constructorprivate Class<?> private Class<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate Set<Constructor> private booleanprivate booleanisPowerMockConstructor(Class<?>[] parameterTypes) private booleanprivate voidprivate voidsetPotentialConstructor(Constructor constructor) private voidvoidthrowExceptionWhenMultipleConstructorMatchesFound(Constructor[] constructors)
-
Field Details
-
type
-
arguments
-
unmockedType
-
potentialConstructor
-
-
Constructor Details
-
ConstructorFinder
-
-
Method Details
-
findConstructor
-
lookupPotentialConstructor
private void lookupPotentialConstructor() -
isVarArgConstructorFound
private boolean isVarArgConstructorFound() -
setPotentialConstructor
-
throwExceptionWhenMultipleConstructorMatchesFound
-
addArgumentForNestedClass
private void addArgumentForNestedClass() -
isNestedClass
private boolean isNestedClass() -
getDeclaredConstructorsWithoutPowerMockConstructor
-
isPowerMockConstructor
-
throwExceptionIfConstructorWasNotFound
private void throwExceptionIfConstructorWasNotFound()
-