@API(status=EXPERIMENTAL,
since="5.0")
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 such Arguments
will
typically be provided by an ArgumentsProvider
.
ParameterizedTest
,
ArgumentsSource
,
ArgumentsProvider
,
ArgumentConverter
Modifier and Type | Method and Description |
---|---|
static Arguments |
arguments(Object... arguments)
Factory method for creating an instance of
Arguments based on
the supplied arguments . |
Object[] |
get()
Get the arguments used for an invocation of the
@ParameterizedTest method. |
static Arguments |
of(Object... arguments)
Factory method for creating an instance of
Arguments based on
the supplied arguments . |
Object[] get()
@ParameterizedTest
method.null
static Arguments of(Object... arguments)
Arguments
based on
the supplied arguments
.arguments
- the arguments to be used for an invocation of the test
method; must not be null
Arguments
; never null
arguments(Object...)
@API(status=EXPERIMENTAL, since="5.3") static Arguments arguments(Object... arguments)
Arguments
based on
the supplied arguments
.
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;
arguments
- the arguments to be used for an invocation of the test
method; must not be null
Arguments
; never null
Copyright © 2022. All rights reserved.