Class FieldArgumentsProvider
java.lang.Object
org.junit.jupiter.params.provider.AnnotationBasedArgumentsProvider<FieldSource>
org.junit.jupiter.params.provider.FieldArgumentsProvider
- All Implemented Interfaces:
Consumer<FieldSource>, ArgumentsProvider, AnnotationConsumer<FieldSource>
- Since:
- 5.11
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Fieldprivate static booleanisConvertibleToStream(Field field, Object value) Determine if the supplied value can be converted into aStreamor if the declared type of the supplied field is aSupplierof a type that can be converted into aStream.provideArguments(ParameterDeclarations parameters, org.junit.jupiter.api.extension.ExtensionContext context, FieldSource fieldSource) The returnedStreamwill beproperly closedby the default implementation ofAnnotationBasedArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext), making it safe to use a resource such asFiles.lines().private static Objectprivate static FieldvalidateField(Field field, Object testInstance) Methods inherited from class AnnotationBasedArgumentsProvider
accept, provideArguments, provideArgumentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentsProvider
provideArguments
-
Constructor Details
-
FieldArgumentsProvider
FieldArgumentsProvider()
-
-
Method Details
-
provideArguments
protected Stream<? extends Arguments> provideArguments(ParameterDeclarations parameters, org.junit.jupiter.api.extension.ExtensionContext context, FieldSource fieldSource) Description copied from class:AnnotationBasedArgumentsProviderThe returnedStreamwill beproperly closedby the default implementation ofAnnotationBasedArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext), making it safe to use a resource such asFiles.lines().- Overrides:
provideArgumentsin classAnnotationBasedArgumentsProvider<FieldSource>
-
findField
-
validateField
-
readField
-
isConvertibleToStream
-