クラス TestUtils
java.lang.ObjectSE
org.springframework.integration.test.util.TestUtils
- 作成者:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Artem Bilan, Gary Russell
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明static final record
static class
Spring Integration Bean を実行時にアプリケーションコンテキストに登録するためのいくつかのサポートメソッドを持つGenericApplicationContext
拡張。コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static TestUtils.LevelsContainer
adjustLogLevels
(StringSE methodName, ListSE<ClassSE<?>> classes, ListSE<StringSE> categories, org.apache.logging.log4j.Level level) static StringSE
'/' をシステムのファイル区切り文字に置き換えて、ファイルパスを更新します。static ThreadPoolTaskScheduler
createTaskScheduler
(int poolSize) 提供されたpoolSize
に基づくThreadPoolTaskScheduler
インスタンスのファクトリ。基本的な Spring Integration インフラストラクチャで提供されるTestUtils.TestApplicationContext
インスタンスを作成します。static ObjectSE
getPropertyValue
(ObjectSE root, StringSE propertyPath) 提供オブジェクトからプロパティの値を取得します。static <T> T
getPropertyValue
(ObjectSE root, StringSE propertyPath, ClassSE<T> type) 提供オブジェクトからプロパティの値を取得し、提供された型にキャストしてみてください。static PropertiesSE
locateComponentInHistory
(ListSE<PropertiesSE> history, StringSE componentName, int startingIndex) static void
revertLogLevels
(StringSE methodName, TestUtils.LevelsContainer container)
コンストラクターの詳細
TestUtils
public TestUtils()
メソッドの詳細
getPropertyValue
提供オブジェクトからプロパティの値を取得し、提供された型にキャストしてみてください。ピリオド区切り文字を介してネストされたプロパティをサポートします。- 型パラメーター:
T
- 期待値型。ピリオドで定義されたネストされたパスにすることができます。- パラメーター:
root
- プロパティ値を取得するオブジェクトpropertyPath
- 値を取得するためのプロパティ名。type
- 期待値型。- 戻り値:
- プロパティの値または null
- 関連事項:
getPropertyValue
createTestApplicationContext
基本的な Spring Integration インフラストラクチャで提供されるTestUtils.TestApplicationContext
インスタンスを作成します。- 戻り値:
TestUtils.TestApplicationContext
インスタンス
createTaskScheduler
提供されたpoolSize
に基づくThreadPoolTaskScheduler
インスタンスのファクトリ。- パラメーター:
poolSize
-ThreadPoolTaskScheduler
のサイズ- 戻り値:
ThreadPoolTaskScheduler
インスタンス。
locateComponentInHistory
public static PropertiesSE locateComponentInHistory(ListSE<PropertiesSE> history, StringSE componentName, int startingIndex) - パラメーター:
history
- メッセージ履歴componentName
- スキャンするコンポーネントの名前startingIndex
- スキャンを開始するインデックス- 戻り値:
- 名前付きコンポーネントによって提供されるプロパティ、または使用可能なものがない場合は null
applySystemFileSeparator
adjustLogLevels
revertLogLevels