Class TestUtils


  • public final class TestUtils
    extends java.lang.Object
    See Spring Integration TestUtils.
    Since:
    1.2
    Author:
    Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getPropertyValue​(java.lang.Object root, java.lang.String propertyPath)
      Uses nested DirectFieldAccessors to obtain a property using dotted notation to traverse fields; e.g.
      static <T> T getPropertyValue​(java.lang.Object root, java.lang.String propertyPath, java.lang.Class<T> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPropertyValue

        public static java.lang.Object getPropertyValue​(java.lang.Object root,
                                                        java.lang.String propertyPath)
        Uses nested 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.
        Parameters:
        root - The object.
        propertyPath - The path.
        Returns:
        The field.
      • getPropertyValue

        public static <T> T getPropertyValue​(java.lang.Object root,
                                             java.lang.String propertyPath,
                                             java.lang.Class<T> type)