@ValueSource is a repeatable
ArgumentsSource which provides access to an array of literal values.
Supported types include shorts, bytes, ints,
longs, floats, doubles, chars,
booleans, strings, and classes. Note, however,
that only one of the supported types may be specified per
@ValueSource declaration.
The supplied literal values will be provided as arguments to the
annotated @ParameterizedClass or @ParameterizedTest.
This annotation is inherited to subclasses.
org.junit.jupiter.params.provider.ArgumentsSource , org.junit.jupiter.params.ParameterizedClass , org.junit.jupiter.params.ParameterizedTest
| Modifier and Type | Method and Description |
|---|---|
| public boolean[] | |
| public byte[] | |
| public char[] | |
| public Class | |
| public double[] | |
| public float[] | |
| public int[] | |
| public long[] | |
| public short[] | |
| public String[] |
| booleans | back to summary |
|---|---|
| public boolean[] booleans() The
| |
| bytes | back to summary |
|---|---|
| public byte[] bytes() The
| |
| chars | back to summary |
|---|---|
| public char[] chars() The
| |
| classes | back to summary |
|---|---|
| public Class The
| |
| doubles | back to summary |
|---|---|
| public double[] doubles() The | |
| floats | back to summary |
|---|---|
| public float[] floats() The
| |
| ints | back to summary |
|---|---|
| public int[] ints() The | |
| longs | back to summary |
|---|---|
| public long[] longs() The | |
| shorts | back to summary |
|---|---|
| public short[] shorts() The
| |
| strings | back to summary |
|---|---|
| public String[] strings() The | |