Class TestUtils
java.lang.Object
org.springframework.cloud.stream.binder.TestUtils
Copy of class in org.springframework.amqp.utils.test to avoid dependency on
spring-amqp.
- Author:
- David Turanski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetPropertyValue(Object root, String propertyPath) Uses nestedDirectFieldAccessors to obtain a property using dotted notation to traverse fields; e.g.static <T> TgetPropertyValue(Object root, String propertyPath, Class<T> type)
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
getPropertyValue
Uses nestedDirectFieldAccessors 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
-