Interface Arguments
-
@API(status=EXPERIMENTAL, since="5.0") public interface Arguments
Argumentsis an abstraction that provides access to an array of objects to be used for invoking a@ParameterizedTestmethod.A
Streamof suchArgumentswill typically be provided by anArgumentsProvider.- Since:
- 5.0
- See Also:
ParameterizedTest,ArgumentsSource,ArgumentsProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Object[]get()Get the arguments used for an invocation of the@ParameterizedTestmethod.static Argumentsof(java.lang.Object... arguments)Factory method for creating an instance ofArgumentsbased on the suppliedarguments.
-
-
-
Method Detail
-
get
java.lang.Object[] get()
Get the arguments used for an invocation of the@ParameterizedTestmethod.- Returns:
- the arguments; must not be
null
-
of
static Arguments of(java.lang.Object... arguments)
Factory method for creating an instance ofArgumentsbased on the suppliedarguments.- Parameters:
arguments- the arguments to be used for an invocation of the test method; must not benull- Returns:
- an instance of
Arguments; nevernull
-
-