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

public Interface ExtensionRegistry

Known Direct Implementers
org.junit.jupiter.engine.extension.MutableExtensionRegistry
Annotations
@API
status:INTERNAL
since:5.0
Static Imports
java.util.stream.Collectors.toCollection, org.apiguardian.api.API.Status.INTERNAL

An ExtensionRegistry holds all registered extensions (i.e. instances of Extension) for a given org.junit.platform.engine.support.hierarchical.Node.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public default <E extends Extension> List<E>
getExtensions(Class<E>
the type of Extension to get
extensionType
)

Get all Extensions of the specified type that are present in this registry or one of its ancestors.

public <E extends Extension> Stream<E>
stream(Class<E>
the type of Extension to stream
extensionType
)

Stream all Extensions of the specified type that are present in this registry or one of its ancestors.

Method Detail

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

Get all Extensions of the specified type that are present in this registry or one of its ancestors.

Parameters
extensionType:Class<E>

the type of Extension to get

See Also
stream(Class)
streamback to summary
public <E extends Extension> Stream<E> stream(Class<E> extensionType)

Stream all Extensions of the specified type that are present in this registry or one of its ancestors.

Parameters
extensionType:Class<E>

the type of Extension to stream

See Also
getExtensions(Class)