アノテーションインターフェース SpringIntegrationTest
@TargetSE(TYPESE)
@RetentionSE(RUNTIMESE)
@DocumentedSE
@InheritedSE
@TestExecutionListeners(listeners=org.springframework.integration.test.context.SpringIntegrationTestExecutionListener.class,
mergeMode=MERGE_WITH_DEFAULTS)
public @interface SpringIntegrationTest
Spring Integration ベースのテストを実行するテストクラスで指定できるアノテーション。通常の Spring TestContext フレームワークに加えて、次の機能を提供します。
- 統合フローのモックと検証のテストで使用できる
MockIntegrationContext
Bean をMockIntegrationContext.MOCK_INTEGRATION_CONTEXT_BEAN_NAME
に登録します。 - テストクラスの前 / 後に、このアノテーションで提供されたオプションを使用して
AbstractEndpoint
Bean をカスタマイズするために使用されるSpringIntegrationTestExecutionListener
を登録します。
このアノテーションの一般的な使用方法は次のとおりです。
@SpringJUnitConfig @SpringIntegrationTest public class MyIntegrationTests { @Autowired private MockIntegrationContext mockIntegrationContext; }
NestedTestConfiguration
セマンティクスを尊重します。
- 導入:
- 5.0
- 作成者:
- Artem Bilan
- 関連事項:
オプション要素の概要
オプション要素修飾子と型オプションの要素説明StringSE[]
AbstractEndpoint
Bean 名に単純な一致パターン("xxx*"、"*xxx"、"*xxx*" または "xxx* yyy")を指定して、コンテキスト初期化中にautoStartup = false
としてマークします。
要素の詳細
noAutoStartup
StringSE[] noAutoStartupAbstractEndpoint
Bean 名に単純な一致パターン("xxx*"、"*xxx"、"*xxx*" または "xxx* yyy")を指定して、コンテキスト初期化中にautoStartup = false
としてマークします。- 戻り値:
- コンテキスト初期化中に停止するエンドポイント名パターン
- 関連事項:
- デフォルト:
{}