Interface ParameterInfo
-
- All Superinterfaces:
ParameterInfo
- All Known Implementing Classes:
DefaultParameterInfo
@Deprecated @API(status=DEPRECATED, since="5.14") public interface ParameterInfo extends ParameterInfoDeprecated.Please useParameterInfoinsteadParameterInfois used to provide information about the current invocation of a parameterized class or test.Registered
Extensionimplementations may retrieve the currentParameterInfoinstance by callingExtensionContext.getStore(Namespace)withNAMESPACEandStore.get(...)withKEY. Alternatively, theget(ExtensionContext)method may be used to retrieve theParameterInfoinstance for the suppliedExtensionContext. Extensions must not modify any entries in theStoreforNAMESPACE.When a
@ParameterizedTestmethod is declared inside a@ParameterizedClassor a@Nested@ParameterizedClassis declared inside an enclosing@ParameterizedClass, there will be multipleParameterInfoinstances available on different levels of theExtensionContexthierarchy. In such cases, please useExtensionContext.getParent()to navigate to the right level before retrieving theParameterInfoinstance from theStore.- Since:
- 5.13
- See Also:
ParameterizedClass,ParameterizedTest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectKEYDeprecated.Please useParameterInfo.KEYinsteadstatic org.junit.jupiter.api.extension.ExtensionContext.NamespaceNAMESPACEDeprecated.Please useParameterInfo.NAMESPACEinstead
-
Method Summary
All Methods Static Methods Deprecated Methods Modifier and Type Method Description static ParameterInfoget(org.junit.jupiter.api.extension.ExtensionContext context)Deprecated.Please useParameterInfo.get(ExtensionContext)instead-
Methods inherited from interface org.junit.jupiter.params.ParameterInfo
getArguments, getDeclarations
-
-
-
-
Field Detail
-
NAMESPACE
@Deprecated @API(status=DEPRECATED, since="5.14") static final org.junit.jupiter.api.extension.ExtensionContext.Namespace NAMESPACEDeprecated.Please useParameterInfo.NAMESPACEinsteadTheExtensionContext.Namespacefor accessing theStoreforParameterInfo.
-
KEY
@Deprecated @API(status=DEPRECATED, since="5.14") static final java.lang.Object KEYDeprecated.Please useParameterInfo.KEYinsteadThe key for retrieving theParameterInfoinstance from theStore.
-
-
Method Detail
-
get
@Deprecated @API(status=DEPRECATED, since="5.14") static ParameterInfo get(org.junit.jupiter.api.extension.ExtensionContext context)Deprecated.Please useParameterInfo.get(ExtensionContext)instead{@return the closest {@code ParameterInfo} instance for the supplied {@code ExtensionContext}; potentially {@code null}}
-
-