クラス TestUtils
- java.lang.ObjectSE
-
- org.springframework.amqp.utils.test.TestUtils
public final class TestUtils extends ObjectSE
Spring Integration TestUtils を参照してください。- 導入:
- 1.2
- 作成者:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Gary Russell
メソッドのサマリー
すべてのメソッド 静的メソッド 具象メソッド 修飾子と型 メソッド 説明 static ObjectSE
getPropertyValue(ObjectSE root, StringSE propertyPath)
ネストされたDirectFieldAccessor
を使用して、ドット表記を使用してプロパティを取得し、フィールドをトラバースします。たとえばstatic <T> T
getPropertyValue(ObjectSE root, StringSE propertyPath, ClassSE<T> type)
メソッドの詳細
getPropertyValue
public static ObjectSE getPropertyValue(ObjectSE root, StringSE propertyPath)
ネストされたDirectFieldAccessor
を使用して、ドット表記を使用してプロパティを取得し、フィールドをトラバースします。たとえば "foo.bar.baz" は、foo の bar フィールドの baz フィールドへの参照を取得します。Spring Integration から採用。- パラメーター:
root
- オブジェクト。propertyPath
- パス。- 戻り値:
- フィールド。