public final class TestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
getPropertyValue(Object root,
String propertyPath)
Uses nested
DirectFieldAccessor s 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)
DirectFieldAccessor
s 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.