Annotation Interface SpringIntegrationTest
Annotation that can be specified on a test class that runs Spring Integration based tests.
Provides the following features over and above the regular Spring TestContext
Framework:
- Registers a
MockIntegrationContext
bean with theMockIntegrationContext.MOCK_INTEGRATION_CONTEXT_BEAN_NAME
which can be used in tests for mocking and verifying integration flows. - Registers an
IntegrationEndpointsInitializer
bean which is used to customizeAbstractEndpoint
beans with provided options on this annotation.
The typical usage of this annotation is like:
@RunWith(SpringRunner.class) @SpringIntegrationTest public class MyIntegrationTests { @Autowired private MockIntegrationContext mockIntegrationContext; }
- Since:
- 5.0
- Author:
- Artem Bilan
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Specify a simple matching patterns ("xxx*", "*xxx", "*xxx*" or "xxx*yyy") forAbstractEndpoint
bean names to mark them asautoStartup = false
during context initialization.
-
Element Details
-
noAutoStartup
String[] noAutoStartupSpecify a simple matching patterns ("xxx*", "*xxx", "*xxx*" or "xxx*yyy") forAbstractEndpoint
bean names to mark them asautoStartup = false
during context initialization.- Returns:
- the endpoints name patterns to stop during context initialization
- See Also:
-
IntegrationEndpointsInitializer
PatternMatchUtils
- Default:
- {}
-