@Configuration
@AutoConfigureOrder(value=-2147483648)
@Import(value=TestSupportBinderConfiguration.class)
@AutoConfigureBefore(value=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