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