Class TestSupportBinderAutoConfiguration
java.lang.Object
org.springframework.cloud.stream.test.binder.TestSupportBinderAutoConfiguration
@Configuration
@AutoConfigureOrder(-2147483648)
@Import(TestSupportBinderConfiguration.class)
@AutoConfigureBefore(org.springframework.cloud.stream.config.BindingServiceConfiguration.class)
public class TestSupportBinderAutoConfiguration
extends Object
Installs the TestSupportBinder} and exposes
MessageCollectorImplto be injected in tests.
Note that this auto-configuration has higher priority than regular binder
configuration, so adding this on the classpath in test scope is sufficient to have
support kick in and replace all binders with the test binder.
- Author:
- Eric Bottard, Marius Bogoevici
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbinderFactory(Binder<org.springframework.messaging.MessageChannel, ?, ?> binder)
-
Constructor Details
-
TestSupportBinderAutoConfiguration
public TestSupportBinderAutoConfiguration()
-
-
Method Details
-
binderFactory
@Bean public BinderFactory binderFactory(Binder<org.springframework.messaging.MessageChannel, ?, ?> binder)
-