use of org.springframework.integration.endpoint.SourcePollingChannelAdapter in project spring-integration by spring-projects.
the class ZookeeperLeaderTests method buildChannelAdapter.
private SourcePollingChannelAdapter buildChannelAdapter() {
SourcePollingChannelAdapter adapter = new SourcePollingChannelAdapter();
adapter.setSource(mock(MessageSource.class));
adapter.setOutputChannel(new QueueChannel());
adapter.setTrigger(mock(Trigger.class));
adapter.setBeanFactory(mock(BeanFactory.class));
adapter.setTaskScheduler(mock(TaskScheduler.class));
adapter.afterPropertiesSet();
return adapter;
}
Aggregations