Class ConstructorInvocation<T>

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>, org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Constructor<T>>

    class ConstructorInvocation<T>
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>, org.junit.jupiter.api.extension.ReflectiveInvocationContext<java.lang.reflect.Constructor<T>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object[] arguments  
      private java.lang.reflect.Constructor<T> constructor  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstructorInvocation​(java.lang.reflect.Constructor<T> constructor, java.lang.Object[] arguments)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Object> getArguments()  
      java.lang.reflect.Constructor<T> getExecutable()  
      java.util.Optional<java.lang.Object> getTarget()  
      java.lang.Class<?> getTargetClass()  
      T proceed()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation

        skip
    • Field Detail

      • constructor

        private final java.lang.reflect.Constructor<T> constructor
      • arguments

        private final java.lang.Object[] arguments
    • Constructor Detail

      • ConstructorInvocation

        ConstructorInvocation​(java.lang.reflect.Constructor<T> constructor,
                              java.lang.Object[] arguments)
    • Method Detail

      • getTargetClass

        public java.lang.Class<?> getTargetClass()
        Specified by:
        getTargetClass in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
      • getExecutable

        public java.lang.reflect.Constructor<T> getExecutable()
        Specified by:
        getExecutable in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
      • getArguments

        public java.util.List<java.lang.Object> getArguments()
        Specified by:
        getArguments in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
      • getTarget

        public java.util.Optional<java.lang.Object> getTarget()
        Specified by:
        getTarget in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
      • proceed

        public T proceed()
        Specified by:
        proceed in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>