Top Description Fields Methods
org.junit.jupiter.params.support

public Interface ParameterInfo

extends ParameterInfo
Known Direct Implementers
org.junit.jupiter.params.DefaultParameterInfo
Annotations
@Deprecated
since:5.14
forRemoval:true
@API
status:DEPRECATED
since:5.14
Static Imports
org.apiguardian.api.API.Status.DEPRECATED

Deprecated

for removal since 5.14.

Please use org.junit.jupiter.params.ParameterInfo instead

ParameterInfo is used to provide information about the current invocation of a parameterized class or test.

Registered Extension implementations may retrieve the current ParameterInfo instance by calling ExtensionContext#getStore(Namespace) with NAMESPACE and Store.get(...) with KEY. Alternatively, the get(ExtensionContext) method may be used to retrieve the ParameterInfo instance for the supplied ExtensionContext. Extensions must not modify any entries in the Store for NAMESPACE.

When a @ParameterizedTest method is declared inside a @ParameterizedClass or a @Nested @ParameterizedClass is declared inside an enclosing @ParameterizedClass, there will be multiple ParameterInfo instances available on different levels of the ExtensionContext hierarchy. In such cases, please use ExtensionContext#getParent() to navigate to the right level before retrieving the ParameterInfo instance from the Store.

Since
5.13
See Also
ParameterizedClass, ParameterizedTest

Field Summary

Modifier and TypeField and Description
public static final Object
KEY

Hides org.junit.jupiter.params.ParameterInfo.KEY.

Deprecated for removal since 5.14. Please use org.junit.jupiter.params.ParameterInfo#KEY instead
The key for retrieving the ParameterInfo instance from the Store.
public static final ExtensionContext.Namespace
NAMESPACE

Hides org.junit.jupiter.params.ParameterInfo.NAMESPACE.

Deprecated for removal since 5.14. Please use org.junit.jupiter.params.ParameterInfo#NAMESPACE instead
The Namespace for accessing the Store for ParameterInfo.

Method Summary

Modifier and TypeMethod and Description
public static @Nullable ParameterInfo

Returns:

the closest ParameterInfo instance for the supplied ExtensionContext; potentially null
get
(ExtensionContext context)

Hides org.junit.jupiter.params.ParameterInfo.get.

Deprecated for removal since 5.14. Please use org.junit.jupiter.params.ParameterInfo#get(ExtensionContext) instead

Returns the closest ParameterInfo instance for the supplied ExtensionContext; potentially null.

Inherited from org.junit.jupiter.params.ParameterInfo:
getArgumentsgetDeclarations

Field Detail

KEYback to summary
public static final Object KEY

Hides org.junit.jupiter.params.ParameterInfo.KEY.

Deprecated

for removal since 5.14.

Please use org.junit.jupiter.params.ParameterInfo#KEY instead

The key for retrieving the ParameterInfo instance from the Store.

Annotations
@Deprecated
since:5.14
forRemoval:true
@API
status:DEPRECATED
since:5.14
NAMESPACEback to summary
public static final ExtensionContext.Namespace NAMESPACE

Hides org.junit.jupiter.params.ParameterInfo.NAMESPACE.

Deprecated

for removal since 5.14.

Please use org.junit.jupiter.params.ParameterInfo#NAMESPACE instead

The Namespace for accessing the Store for ParameterInfo.

Annotations
@Deprecated
since:5.14
forRemoval:true
@API
status:DEPRECATED
since:5.14

Method Detail

getback to summary
public static @Nullable ParameterInfo get(ExtensionContext context)

Hides org.junit.jupiter.params.ParameterInfo.get.

Deprecated

for removal since 5.14.

Please use org.junit.jupiter.params.ParameterInfo#get(ExtensionContext) instead

Returns the closest ParameterInfo instance for the supplied ExtensionContext; potentially null.

Returns:@Nullable ParameterInfo

the closest ParameterInfo instance for the supplied ExtensionContext; potentially null

Annotations
@Deprecated
since:5.14
forRemoval:true
@API
status:DEPRECATED
since:5.14