public final class Util
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addProperty(java.util.Hashtable env,
java.lang.String property)
Parses an @Property value and adds it to the specified Hashtable
|
static java.lang.reflect.Method |
findSetter(java.lang.Class<?> testClazz,
java.lang.reflect.Field field,
java.lang.Object propertyValue)
Finds the setter method for a given field in the test class
|
static java.lang.reflect.Method |
getMostSpecificMethod(java.lang.reflect.Method method1,
java.lang.reflect.Method method2)
Returns the most specific of the 2 methods.
|
static boolean |
isInstance(java.lang.Class type,
java.lang.Object instance) |
public static boolean isInstance(java.lang.Class type,
java.lang.Object instance)
type - instance - public static void addProperty(java.util.Hashtable env,
java.lang.String property)
env - property - public static java.lang.reflect.Method findSetter(java.lang.Class<?> testClazz,
java.lang.reflect.Field field,
java.lang.Object propertyValue)
testClazz - field - propertyValue - public static java.lang.reflect.Method getMostSpecificMethod(java.lang.reflect.Method method1,
java.lang.reflect.Method method2)
method1 - method2 -