Package org.junit.jupiter.params.support
Interface FieldContext
-
- All Superinterfaces:
org.junit.jupiter.api.extension.AnnotatedElementContext
- All Known Implementing Classes:
ResolverFacade.FieldParameterDeclaration
@API(status=MAINTAINED, since="5.13.3") public interface FieldContext extends org.junit.jupiter.api.extension.AnnotatedElementContextFieldContextencapsulates the context in which an@Parameter-annotatedFieldis declared in a@ParameterizedClass.- Since:
- 5.13
- See Also:
ParameterizedClass,Parameter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.reflect.FieldgetField(){@return the field for this context; never {@code null}}intgetParameterIndex(){@return the index of the parameter}
-
-
-
Method Detail
-
getField
java.lang.reflect.Field getField()
{@return the field for this context; never {@code null}}
-
getParameterIndex
int getParameterIndex()
{@return the index of the parameter}This method returns -1 for aggregator fields and a value greater than or equal to zero for indexed parameters.
- See Also:
Parameter.value()
-
-