public final class TestUtils extends ObjectSE
| 修飾子と型 | メソッドと説明 |
|---|---|
static ObjectSE | getPropertyValue(ObjectSE root, StringSE propertyPath) ネストされた DirectFieldAccessor を使用して、ドット表記を使用してプロパティを取得し、フィールドをトラバースします。たとえば |
static <T> T | getPropertyValue(ObjectSE root, StringSE propertyPath, ClassSE<T> type) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static ObjectSE getPropertyValue(ObjectSE root, StringSE propertyPath)
DirectFieldAccessor を使用して、ドット表記を使用してプロパティを取得し、フィールドをトラバースします。たとえば "foo.bar.baz" は、foo の bar フィールドの baz フィールドへの参照を取得します。Spring Integration から採用。root - オブジェクト。propertyPath - パス。