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