T - the declared type for the property to access.public final class Invoker<T>
extends java.lang.Object
The following is an example of proper usage of this class:
// Retrieves the value of the property "name" String name =property("name").ofType(String.class).in(person).get(); // Sets the value of the property "name" to "Yoda"property("name").ofType(String.class).in(person).set("Yoda"); // Retrieves the value of the static property "count" int count =staticField("count").ofType(int.class).in(Person.class).get(); // Sets the value of the static property "count" to 3property("count").ofType(int.class).in(Person.class).set(3);
public void set(T value)
value - the value to set.ReflectionError - if the given value cannot be set.public T get()
ReflectionError - if the value of the property cannot be retrieved.public java.beans.PropertyDescriptor info()
Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.