Top Description Methods
org.junit.jupiter.engine.extension

public Interface ExtensionContextInternal

extends ExtensionContext
Known Direct Implementers
org.junit.jupiter.engine.descriptor.AbstractExtensionContext
Annotations
@API
status:INTERNAL
since:5.12
Static Imports
org.apiguardian.api.API.Status.INTERNAL

ExtensionContextInternal extends the ExtensionContext with internal API.
Since
5.12
See Also
ExtensionContext

Method Summary

Modifier and TypeMethod and Description
public <
the extension type
E extends Extension
>
List<E>

Returns:

the list of extensions
getExtensions
(Class<E>
the extension type
extensionType
)

Returns a list of registered extension at this context of the passed extensionType.

Inherited from org.junit.jupiter.api.extension.ExtensionContext:
getConfigurationParametergetConfigurationParametergetDisplayNamegetElementgetEnclosingTestClassesgetExecutableInvokergetExecutionExceptiongetExecutionModegetParentgetRequiredTestClassgetRequiredTestInstancegetRequiredTestInstancesgetRequiredTestMethodgetRootgetStoregetStoregetTagsgetTestClassgetTestInstancegetTestInstanceLifecyclegetTestInstancesgetTestMethodgetUniqueIdpublishDirectorypublishFilepublishFilepublishReportEntrypublishReportEntrypublishReportEntry

Method Detail

getExtensionsback to summary
public <E extends Extension> List<E> getExtensions(Class<E> extensionType)

Returns a list of registered extension at this context of the passed extensionType.

Parameters
<E>
the extension type
extensionType:Class<E>

the extension type

Returns:List<E>

the list of extensions