public class TestUtils extends Object
| Constructor and Description |
|---|
TestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getPropertyValue(Object root,
String propertyPath)
Uses nested
DirectFieldAccessors to obtain a property using dotted notation to traverse fields; e.g. |
static <T> T |
getPropertyValue(Object root,
String propertyPath,
Class<T> type) |
public static Object getPropertyValue(Object root, String propertyPath)
DirectFieldAccessors to obtain a property using dotted notation to traverse fields; e.g.
"foo.bar.baz" will obtain a reference to the baz field of the bar field of foo. Adopted from Spring Integration.root - The object.propertyPath - The path.