Interface ExtensionContextInternal

All Superinterfaces:
org.junit.jupiter.api.extension.ExtensionContext

@API(status=INTERNAL, since="5.12") public interface ExtensionContextInternal extends org.junit.jupiter.api.extension.ExtensionContext
ExtensionContextInternal extends the ExtensionContext with internal API.
Since:
5.12
See Also:
  • ExtensionContext
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.ExtensionContext

    org.junit.jupiter.api.extension.ExtensionContext.Namespace, org.junit.jupiter.api.extension.ExtensionContext.Store, org.junit.jupiter.api.extension.ExtensionContext.StoreScope
  • Method Summary

    Modifier and Type
    Method
    Description
    <E extends org.junit.jupiter.api.extension.Extension>
    List<E>
    getExtensions(Class<E> extensionType)
    Returns a list of registered extension at this context of the passed extensionType.

    Methods inherited from interface org.junit.jupiter.api.extension.ExtensionContext

    getConfigurationParameter, getConfigurationParameter, getDisplayName, getElement, getEnclosingTestClasses, getExecutableInvoker, getExecutionException, getExecutionMode, getParent, getRequiredTestClass, getRequiredTestInstance, getRequiredTestInstances, getRequiredTestMethod, getRoot, getStore, getStore, getTags, getTestClass, getTestInstance, getTestInstanceLifecycle, getTestInstances, getTestMethod, getUniqueId, publishDirectory, publishFile, publishFile, publishReportEntry, publishReportEntry, publishReportEntry
  • Method Details

    • getExtensions

      <E extends org.junit.jupiter.api.extension.Extension> List<E> getExtensions(Class<E> extensionType)
      Returns a list of registered extension at this context of the passed extensionType.
      Type Parameters:
      E - the extension type
      Parameters:
      extensionType - the extension type
      Returns:
      the list of extensions