クラス TestUtils


  • public final class TestUtils
    extends ObjectSE
    Spring Integration TestUtils を参照してください。
    導入:
    1.2
    作成者:
    Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell
    • メソッドの詳細

      • getPropertyValue

        public static ObjectSE getPropertyValue​(ObjectSE root,
                                              StringSE propertyPath)
        ネストされた DirectFieldAccessor を使用して、ドット表記を使用してプロパティを取得し、フィールドをトラバースします。たとえば "foo.bar.baz" は、foo の bar フィールドの baz フィールドへの参照を取得します。Spring Integration から採用。
        パラメーター:
        root - オブジェクト。
        propertyPath - パス。
        戻り値:
        フィールド。
      • getPropertyValue

        public static <T> T getPropertyValue​(ObjectSE root,
                                             StringSE propertyPath,
                                             ClassSE<T> type)