public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addProperty(Hashtable env,
String property)
Parses an @Property value and adds it to the specified Hashtable
|
static Method |
findSetter(Class<?> testClazz,
Field field,
Object propertyValue)
Finds the setter method for a given field in the test class
|
static Method |
getMostSpecificMethod(Method method1,
Method method2)
Returns the most specific of the 2 methods.
|
static boolean |
isInstance(Class type,
Object instance) |
public static boolean isInstance(Class type, Object instance)
type - instance - public static void addProperty(Hashtable env, String property)
env - value - public static Method findSetter(Class<?> testClazz, Field field, Object propertyValue)
allowStatic - typeClass - propertyName - propertyValue - public static Method getMostSpecificMethod(Method method1, Method method2)
unpreferredValidMethod - clazzMethod - Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.