-
@API(status=STABLE, since="5.7") public interface Arguments
Arguments
is an abstraction that provides access to an array of objects to be used for invoking a@ParameterizedTest
method.A
Stream
of suchArguments
will typically be provided by anArgumentsProvider
.- Since:
- 5.0
- See Also:
ParameterizedTest
,ArgumentsSource
,ArgumentsProvider
,ArgumentConverter
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Arguments
arguments(java.lang.Object... arguments)
Factory method for creating an instance ofArguments
based on the suppliedarguments
.java.lang.Object[]
get()
Get the arguments used for an invocation of the@ParameterizedTest
method.static Arguments
of(java.lang.Object... arguments)
Factory method for creating an instance ofArguments
based on the suppliedarguments
.
-
-
-
Method Detail
-
get
java.lang.Object[] get()
Get the arguments used for an invocation of the@ParameterizedTest
method.- Returns:
- the arguments; must not be
null
-
of
static Arguments of(java.lang.Object... arguments)
Factory method for creating an instance ofArguments
based 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
- See Also:
arguments(Object...)
-
arguments
static Arguments arguments(java.lang.Object... arguments)
Factory method for creating an instance ofArguments
based on the suppliedarguments
.This method is an alias for
of(java.lang.Object...)
and is intended to be used when statically imported — for example, via:import static org.junit.jupiter.params.provider.Arguments.arguments;
- Parameters:
arguments
- the arguments to be used for an invocation of the test method; must not benull
- Returns:
- an instance of
Arguments
; nevernull
- Since:
- 5.3
-
-