Class TestUtils
java.lang.Object
org.springframework.amqp.utils.test.TestUtils
See Spring Integration TestUtils.
- Since:
- 1.2
- Author:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getPropertyValue
(Object root, String propertyPath) Uses nestedDirectFieldAccessor
s to obtain a property using dotted notation to traverse fields; e.g.static <T> T
getPropertyValue
(Object root, String propertyPath, Class<T> type)
-
Method Details
-
getPropertyValue
Uses nestedDirectFieldAccessor
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.- Parameters:
root
- The object.propertyPath
- The path.- Returns:
- The field.
-
getPropertyValue
-