Interface FieldContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.reflect.Field getField()
      {@return the field for this context; never {@code null}}
      int getParameterIndex()
      {@return the index of the parameter}
      • Methods inherited from interface org.junit.jupiter.api.extension.AnnotatedElementContext

        findAnnotation, findRepeatableAnnotations, getAnnotatedElement, isAnnotated
    • 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()