Class DefaultExecutableInvoker

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.ExecutableInvoker

    @API(status=INTERNAL,
         since="5.9")
    public class DefaultExecutableInvoker
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.ExecutableInvoker
    Since:
    5.9
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T invoke​(java.lang.reflect.Constructor<T> constructor, java.lang.Object outerInstance)  
      java.lang.Object invoke​(java.lang.reflect.Method method, java.lang.Object target)  
      • 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.ExecutableInvoker

        invoke, invoke
    • Field Detail

      • extensionContext

        private final org.junit.jupiter.api.extension.ExtensionContext extensionContext
    • Constructor Detail

      • DefaultExecutableInvoker

        public DefaultExecutableInvoker​(org.junit.jupiter.api.extension.ExtensionContext extensionContext,
                                        ExtensionRegistry extensionRegistry)
    • Method Detail

      • invoke

        public <T> T invoke​(java.lang.reflect.Constructor<T> constructor,
                            java.lang.Object outerInstance)
        Specified by:
        invoke in interface org.junit.jupiter.api.extension.ExecutableInvoker
      • invoke

        public java.lang.Object invoke​(java.lang.reflect.Method method,
                                       java.lang.Object target)
        Specified by:
        invoke in interface org.junit.jupiter.api.extension.ExecutableInvoker