Package net.serenitybdd.rest.decorators
Class ReflectionHelper<T>
- java.lang.Object
-
- net.serenitybdd.rest.decorators.ReflectionHelper<T>
-
public class ReflectionHelper<T> extends Object
User: YamStranger Date: 3/17/16 Time: 12:00 PM
-
-
Constructor Summary
Constructors Constructor Description ReflectionHelper(T object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
executeFunction(String function, Class[] types, Object... params)
Object
getValueFrom(String field)
void
setValueTo(String field, Object value)
-
-
-
Constructor Detail
-
ReflectionHelper
public ReflectionHelper(T object)
-
-
Method Detail
-
getValueFrom
public Object getValueFrom(String field) throws IllegalAccessException, NoSuchFieldException
-
setValueTo
public void setValueTo(String field, Object value) throws NoSuchFieldException, IllegalAccessException
-
executeFunction
public Object executeFunction(String function, Class[] types, Object... params) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
-