TestTemplateInvocationContext
represents the context of a
single invocation of a test
template.
Each context is provided by a TestTemplateInvocationContextProvider
.
org.junit.jupiter.api.TestTemplate
, TestTemplateInvocationContextProvider
Modifier and Type | Method and Description |
---|---|
public default List | Returns: the additional extensions for this invocation; nevernull
or containing null elements, but potentially emptyGet the additional extensions for this invocation. |
public default String | Returns: the display name for this invocation; nevernull or blankthe index of this invocation (1-based). invocationIndex)Get the display name for this invocation. |
getAdditionalExtensions | back to summary |
---|---|
public default List Get the additional extensions for this invocation. The extensions provided by this method will only be used for this
invocation of the test template. Thus, it does not make sense to return
an extension that acts solely on the container level (e.g.
The default implementation returns an empty list. |
getDisplayName | back to summary |
---|---|
public default String getDisplayName(int invocationIndex) Get the display name for this invocation. The supplied The default implementation returns the supplied
|