public class TestUtils
extends java.lang.Object
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
callMethod(java.lang.String name,
java.lang.Object target) |
static <T> T |
callMethod(java.lang.String name,
java.lang.Object target,
java.lang.Object[] args,
java.lang.Class<?>[] argsTypes) |
static <T> T |
readField(java.lang.String name,
java.lang.Object target) |
static void |
setField(java.lang.String name,
java.lang.Object target,
java.lang.Object value) |
public static <T> T readField(java.lang.String name, java.lang.Object target) throws java.lang.Exception
java.lang.Exception
public static <T> T callMethod(java.lang.String name, java.lang.Object target) throws java.lang.Exception
java.lang.Exception
public static void setField(java.lang.String name, java.lang.Object target, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public static <T> T callMethod(java.lang.String name, java.lang.Object target, java.lang.Object[] args, java.lang.Class<?>[] argsTypes) throws java.lang.Exception
java.lang.Exception