@Configuration 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.| Constructor and Description |
|---|
TestSupportBinderAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
BinderFactory |
binderFactory() |
MessageCollector |
messageCollector(BinderFactory binderFactory) |
@Bean public BinderFactory binderFactory()
@Bean public MessageCollector messageCollector(BinderFactory binderFactory)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.