Class MethodInvocation<T>

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

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

      Fields 
      Modifier and Type Field Description
      private java.lang.Object[] arguments  
      private java.lang.reflect.Method method  
      private java.util.Optional<java.lang.Object> target  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodInvocation​(java.lang.reflect.Method method, java.util.Optional<java.lang.Object> target, 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.Method 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

      • method

        private final java.lang.reflect.Method method
      • target

        private final java.util.Optional<java.lang.Object> target
      • arguments

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

      • MethodInvocation

        MethodInvocation​(java.lang.reflect.Method method,
                         java.util.Optional<java.lang.Object> target,
                         java.lang.Object[] arguments)
    • Method Detail

      • getTargetClass

        public java.lang.Class<?> getTargetClass()
        Specified by:
        getTargetClass 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>
      • getExecutable

        public java.lang.reflect.Method 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>
      • proceed

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