Class ConstructorFinder


  • class ConstructorFinder
    extends java.lang.Object
    • Field Detail

      • type

        private java.lang.Class<?> type
      • arguments

        private java.lang.Object[] arguments
      • unmockedType

        private java.lang.Class<?> unmockedType
      • potentialConstructor

        private Constructor potentialConstructor
    • Constructor Detail

      • ConstructorFinder

        ConstructorFinder​(java.lang.Class<?> type,
                          java.lang.Object... arguments)
    • Method Detail

      • findConstructor

        public java.lang.reflect.Constructor findConstructor()
      • lookupPotentialConstructor

        private void lookupPotentialConstructor()
      • isVarArgConstructorFound

        private boolean isVarArgConstructorFound()
      • setPotentialConstructor

        private void setPotentialConstructor​(Constructor constructor)
      • throwExceptionWhenMultipleConstructorMatchesFound

        public void throwExceptionWhenMultipleConstructorMatchesFound​(java.lang.reflect.Constructor[] constructors)
      • addArgumentForNestedClass

        private void addArgumentForNestedClass()
      • isNestedClass

        private boolean isNestedClass()
      • getDeclaredConstructorsWithoutPowerMockConstructor

        private java.util.Set<Constructor> getDeclaredConstructorsWithoutPowerMockConstructor()
      • isPowerMockConstructor

        private boolean isPowerMockConstructor​(java.lang.Class<?>[] parameterTypes)
      • throwExceptionIfConstructorWasNotFound

        private void throwExceptionIfConstructorWasNotFound()