T - the generic type of the field.public class FieldType<T>
extends java.lang.Object
The following is an example of proper usage of this class:
// Retrieves the value of the field "name" String name =field("name").ofType(String.class).in(person).get(); // Sets the value of the field "name" to "Yoda"field("name").ofType(String.class).in(person).set("Yoda");
public Invoker<T> in(java.lang.Object target)
target - the object containing the field of interest.java.lang.NullPointerException - if the given target is null.ReflectionError - if a field with a matching name and type cannot be found.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.