org.hamcrest.beans
public class PropertyUtil extends Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static PropertyDescriptor |
getPropertyDescriptor(String propertyName,
Object fromObj)
Returns the description of the property with the provided
name on the provided object's interface.
|
public static PropertyDescriptor getPropertyDescriptor(String propertyName, Object fromObj) throws IntrospectionException
IntrospectionException
- if an error occured using the JavaBean Introspector class
to query the properties of the provided class.