public class

FrameworkField

extends Object
java.lang.Object
   ↳ org.junit.runners.model.FrameworkField

Class Overview

Represents a field on a test class (currently used only for Rules in BlockJUnit4ClassRunner, but custom runners can make other uses)

Summary

Public Methods
Object get(Object target)
Attempts to retrieve the value of this field on target
Annotation[] getAnnotations()
Returns the annotations on this method
Field getField()
boolean isShadowedBy(FrameworkField otherMember)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Object get (Object target)

Attempts to retrieve the value of this field on target

public Annotation[] getAnnotations ()

Returns the annotations on this method

public Field getField ()

Returns
  • the underlying java Field

public boolean isShadowedBy (FrameworkField otherMember)