Added ability to autowire MessageSource to TestBinder

This commit is contained in:
Oleg Zhurakousky
2019-01-03 20:28:35 +01:00
parent adff24f54e
commit 77198db75c

View File

@@ -120,6 +120,7 @@ public class TestChannelBinder extends AbstractMessageChannelBinder<ConsumerProp
* Set a delegate {@link MessageSource} for pollable consumers.
* @param messageSourceDelegate the delegate.
*/
@Autowired(required=false)
public void setMessageSourceDelegate(MessageSource<byte[]> messageSourceDelegate) {
this.messageSourceDelegate = messageSourceDelegate;
}