クラス TestUtils
java.lang.ObjectSE
org.springframework.integration.test.util.TestUtils
- 作成者:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Artem Bilan, Gary Russell
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static final recordstatic classSpring Integration Bean を実行時にアプリケーションコンテキストに登録するためのいくつかのサポートメソッドを持つGenericApplicationContext拡張。コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static TestUtils.LevelsContaineradjustLogLevels(StringSE methodName, ListSE<ClassSE<?>> classes, ListSE<StringSE> categories, org.apache.logging.log4j.Level level) static StringSE'/' をシステムのファイル区切り文字に置き換えて、ファイルパスを更新します。static ThreadPoolTaskSchedulercreateTaskScheduler(int poolSize) 提供されたpoolSizeに基づくThreadPoolTaskSchedulerインスタンスのファクトリ。基本的な Spring Integration インフラストラクチャで提供されるTestUtils.TestApplicationContextインスタンスを作成します。static ObjectSEgetPropertyValue(ObjectSE root, StringSE propertyPath) 提供オブジェクトからプロパティの値を取得します。static <T> TgetPropertyValue(ObjectSE root, StringSE propertyPath, ClassSE<T> type) 提供オブジェクトからプロパティの値を取得し、提供された型にキャストしてみてください。static PropertiesSElocateComponentInHistory(ListSE<PropertiesSE> history, StringSE componentName, int startingIndex) static voidrevertLogLevels(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