T
- the generic type of the property.public class PropertyType<T> extends 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");
public Invoker<T> in(Object target)
target
- the object containing the property of interest.NullPointerException
- if the given target is null
.ReflectionError
- if a property with a matching name and type cannot be found.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.