blob: 025b201be1d93592a7620781f4bd36dfb7c284ec [file] [view] [edit]
When using `TestParameterInjector`, annotating a `boolean`, `Boolean`, or `Enum`
parameter or field with `@TestParameter` automatically injects all possible
values (note that it does not inject `null`). Explicitly specifying all values
is redundant, and for enums, omitting the explicit list ensures the test will
automatically run for any new values added to the enum in the future.
```java
@Test
public void someTest(
@TestParameter({"true", "false"}) boolean foo,
@TestParameter({"HEARTS", "DIAMONDS", "CLUBS", "SPADES"}) Suit suit) {
...
}
```
```java
@Test
public void someTest(@TestParameter boolean foo, @TestParameter Suit suit) {
...
}
```