Add support for @FieldSource
for @ParameterizedTest
methods
#638
Labels
Milestone
@FieldSource
for @ParameterizedTest
methods
#638
Overview
@FieldSource
was introduced in JUnit Jupiter 5.11 for use with@ParameterizedTest
methods.Similar to
@MethodSource
which allows developers to supply a fully-qualified method name,@FieldSource
allows developers to supply a fully-qualified field name.Native Build Tools already registers reflection metadata for fully-qualified method names for
@MethodSource
here:native-build-tools/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/jupiter/JupiterConfigProvider.java
Lines 144 to 166 in 979e9ec
Similar support should be added for
@FieldSource
. For example, given the following parameterized test, reflection metadata should be registered for theexample.FruitUtils#tropicalFruits
field.Related Issues
@ParameterizedTest
with@MethodSource
are not supported. #51@ExtendWith
,@ArgumentsSource
, etc. for reflection #54The text was updated successfully, but these errors were encountered: