Annotation Interface SpringIntegrationTest


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @TestExecutionListeners(listeners=org.springframework.integration.test.context.SpringIntegrationTestExecutionListener.class, mergeMode=MERGE_WITH_DEFAULTS) public @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:

The typical usage of this annotation is like:

 @SpringJUnitConfig
 @SpringIntegrationTest
 public class MyIntegrationTests {

    @Autowired
    private MockIntegrationContext mockIntegrationContext;

 }
 
Since:
5.0
Author:
Artem Bilan
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specify a simple matching patterns ("xxx*", "*xxx", "*xxx*" or "xxx*yyy") for AbstractEndpoint bean names to mark them as autoStartup = false during context initialization.
  • Element Details

    • noAutoStartup

      String[] noAutoStartup
      Specify a simple matching patterns ("xxx*", "*xxx", "*xxx*" or "xxx*yyy") for AbstractEndpoint bean names to mark them as autoStartup = false during context initialization.
      Returns:
      the endpoints name patterns to stop during context initialization
      See Also:
      Default:
      {}