Annotation Type ShortRangeSource
@ShortRangeSource is an ArgumentsSource that provides access to a range of short values.
The supplied values will be provided as arguments to the annotated @ParameterizedTest method.
For more details and examples, see the documentation on range sources.
This annotation is Repeatable, to make it usable with CartesianTest.
If used with ParameterizedTest, it can only be used once (because ParameterizedTest
can only take a single ArgumentsSource). Using it more than once will throw an IllegalArgumentException.
If used with CartesianTest, it can be repeated to provide arguments to
more than one parameter.
This annotation can be used on a method parameter, to make it usable with
CartesianTest. If used with ParameterizedTest,
the annotation has to be on the method itself as any other ArgumentsSource.
For more details and examples, see the documentation on Cartesian product tests.
- Since:
- 0.5
- See Also:
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
from
short fromThe starting point of the range, inclusive. -
to
short toThe end point of the range, exclusive. -
step
short stepThe size of the step between thefromand theto.- Default:
1
-
closed
-