Closed
Description
Given following example with types from the JDK,
@EnumSource(IsoEra.class)
@EnumSource(MinguoEra.class)
@EnumSource(HijrahEra.class)
@ParameterizedTest
void getDisplayName(Era era) {
assertNotNull(era.getDisplayName(TextStyle.FULL, Locale.ROOT));
}
the compiler complains with:
java: org.junit.jupiter.params.provider.EnumSource is not a repeatable annotation type
It would be useful if multiple @EnumSource
annotations were allowed for a single parameterized test.
My use case would be two enums that both implement the same interface that is used as the method parameter.
(Others JDK types are java.nio.file.LinkOption
and java.nio.file.StandardOpenOption
that implement the same java.nio.file.OpenOption
.)