ParameterDeclarations encapsulates the combined declarations
of all indexed @ParameterizedClass or
@ParameterizedTest parameters.
For a @ParameterizedTest, the parameter declarations are derived
from the method signature. For a @ParameterizedClass, they may be
derived from the constructor or
@Parameter-annotated fields.
Aggregators, that is parameters of type
ArgumentsAccessor or parameters annotated with
@AggregateWith, are
not indexed and thus not included in the list of parameter
declarations.
ParameterDeclaration, org.junit.jupiter.params.ParameterizedClass , org.junit.jupiter.params.ParameterizedTest
| Modifier and Type | Method and Description |
|---|---|
| public Optional | Returns: the indexed parameter declaration for the supplied index, if available; nevernullReturns the indexed parameter declaration for the supplied
index, if available; never |
| public List | Returns: all indexed parameter declarations; nevernull,
sorted by indexReturns all indexed parameter declarations; never |
| public Optional | Returns: the first indexed parameter declaration, if available; nevernullReturns the first indexed parameter declaration, if available;
never |
| public AnnotatedElement | Returns: the source element of all parameter declarationsReturns the source element of all parameter declarations. |
| public String | Returns: a human-readable description of the source elementReturns a human-readable description of the source element. |
| get | back to summary |
|---|---|
| public Optional Returns the indexed parameter declaration for the supplied
index, if available; never
| |
| getAll | back to summary |
|---|---|
| public List Returns all indexed parameter declarations; never
| |
| getFirst | back to summary |
|---|---|
| public Optional Returns the first indexed parameter declaration, if available;
never
| |
| getSourceElement | back to summary |
|---|---|
| public AnnotatedElement getSourceElement() Returns the source element of all parameter declarations. For
| |
| getSourceElementDescription | back to summary |
|---|---|
| public String getSourceElementDescription() Returns a human-readable description of the source element. This may, for example, be used in error messages.
| |