@Configuration @AutoConfigureOrder(value=-2147483648) @Import(value=TestSupportBinderConfiguration.class) @AutoConfigureBefore(value=org.springframework.cloud.stream.config.BindingServiceConfiguration.class) public class TestSupportBinderAutoConfiguration extends Object
TestSupportBinder and exposes
TestSupportBinder.MessageCollectorImpl to 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.
The test binder instance is supplied by the TestSupportBinderConfiguration.| Constructor and Description |
|---|
TestSupportBinderAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.stream.binder.BinderFactory |
binderFactory(org.springframework.cloud.stream.binder.Binder<org.springframework.messaging.MessageChannel,?,?> binder) |
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.