Module org.junit.jupiter.params
Package org.junit.jupiter.params.support
Interface ParameterDeclaration
ParameterDeclaration
encapsulates the declaration of an
indexed @ParameterizedClass
or @ParameterizedTest
parameter.- Since:
- 5.13
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns theAnnotatedElement
that declares the parameter; nevernull
.int
Returns the index of the parameter.Returns the name of the parameter, if available; nevernull
but potentially empty.Class
<?> Returns the type of the parameter; nevernull
.
-
Method Details
-
getAnnotatedElement
AnnotatedElement getAnnotatedElement()Returns theAnnotatedElement
that declares the parameter; nevernull
.- Returns:
- the
AnnotatedElement
that declares the parameter; nevernull
-
getParameterType
Class<?> getParameterType()Returns the type of the parameter; nevernull
.- Returns:
- the type of the parameter; never
null
-
getParameterIndex
int getParameterIndex()Returns the index of the parameter.- Returns:
- the index of the parameter
-
getParameterName
Returns the name of the parameter, if available; nevernull
but potentially empty.- Returns:
- the name of the parameter, if available; never
null
but potentially empty
-