Class ConstructorFinder

java.lang.Object
org.powermock.reflect.internal.ConstructorFinder

class ConstructorFinder extends Object
  • Field Details

    • type

      private Class<?> type
    • arguments

      private Object[] arguments
    • unmockedType

      private Class<?> unmockedType
    • potentialConstructor

      private Constructor potentialConstructor
  • Constructor Details

    • ConstructorFinder

      ConstructorFinder(Class<?> type, Object... arguments)
  • Method Details

    • findConstructor

      public Constructor findConstructor()
    • lookupPotentialConstructor

      private void lookupPotentialConstructor()
    • isVarArgConstructorFound

      private boolean isVarArgConstructorFound()
    • setPotentialConstructor

      private void setPotentialConstructor(Constructor constructor)
    • throwExceptionWhenMultipleConstructorMatchesFound

      public void throwExceptionWhenMultipleConstructorMatchesFound(Constructor[] constructors)
    • addArgumentForNestedClass

      private void addArgumentForNestedClass()
    • isNestedClass

      private boolean isNestedClass()
    • getDeclaredConstructorsWithoutPowerMockConstructor

      private Set<Constructor> getDeclaredConstructorsWithoutPowerMockConstructor()
    • isPowerMockConstructor

      private boolean isPowerMockConstructor(Class<?>[] parameterTypes)
    • throwExceptionIfConstructorWasNotFound

      private void throwExceptionIfConstructorWasNotFound()