class ConstructorFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
arguments |
private Constructor |
potentialConstructor |
private java.lang.Class<?> |
type |
private java.lang.Class<?> |
unmockedType |
Constructor and Description |
---|
ConstructorFinder(java.lang.Class<?> type,
java.lang.Object... arguments) |
Modifier and Type | Method and Description |
---|---|
private void |
addArgumentForNestedClass() |
java.lang.reflect.Constructor |
findConstructor() |
private java.util.Set<Constructor> |
getDeclaredConstructorsWithoutPowerMockConstructor() |
private boolean |
isNestedClass() |
private boolean |
isPowerMockConstructor(java.lang.Class<?>[] parameterTypes) |
private boolean |
isVarArgConstructorFound() |
private void |
lookupPotentialConstructor() |
private void |
setPotentialConstructor(Constructor constructor) |
private void |
throwExceptionIfConstructorWasNotFound() |
void |
throwExceptionWhenMultipleConstructorMatchesFound(java.lang.reflect.Constructor[] constructors) |
private java.lang.Class<?> type
private java.lang.Object[] arguments
private java.lang.Class<?> unmockedType
private Constructor potentialConstructor
ConstructorFinder(java.lang.Class<?> type, java.lang.Object... arguments)
public java.lang.reflect.Constructor findConstructor()
private void lookupPotentialConstructor()
private boolean isVarArgConstructorFound()
private void setPotentialConstructor(Constructor constructor)
public void throwExceptionWhenMultipleConstructorMatchesFound(java.lang.reflect.Constructor[] constructors)
private void addArgumentForNestedClass()
private boolean isNestedClass()
private java.util.Set<Constructor> getDeclaredConstructorsWithoutPowerMockConstructor()
private boolean isPowerMockConstructor(java.lang.Class<?>[] parameterTypes)
private void throwExceptionIfConstructorWasNotFound()