channel implementations now extend IntegrationObjectSupport, and MethodInvokingMessageProcessor now provides a setter for a ConversionService
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,6 +68,7 @@ public class DispatchingChannelErrorHandlingTests {
|
||||
TaskExecutor executor = new SimpleAsyncTaskExecutor();
|
||||
PublishSubscribeChannel channel = new PublishSubscribeChannel(executor);
|
||||
channel.setBeanFactory(context);
|
||||
channel.afterPropertiesSet();
|
||||
ResultHandler resultHandler = new ResultHandler();
|
||||
defaultErrorChannel.subscribe(resultHandler);
|
||||
channel.subscribe(new MessageHandler() {
|
||||
@@ -98,6 +99,7 @@ public class DispatchingChannelErrorHandlingTests {
|
||||
TaskExecutor executor = new SimpleAsyncTaskExecutor();
|
||||
ExecutorChannel channel = new ExecutorChannel(executor);
|
||||
channel.setBeanFactory(context);
|
||||
channel.afterPropertiesSet();
|
||||
ResultHandler resultHandler = new ResultHandler();
|
||||
defaultErrorChannel.subscribe(resultHandler);
|
||||
channel.subscribe(new MessageHandler() {
|
||||
|
||||
@@ -266,6 +266,7 @@ public class GatewayProxyFactoryBeanTests {
|
||||
proxyFactory.setBeanName("testGateway");
|
||||
DirectChannel channel = new DirectChannel();
|
||||
channel.setBeanName("testChannel");
|
||||
channel.afterPropertiesSet();
|
||||
EventDrivenConsumer consumer = new EventDrivenConsumer(channel, new BridgeHandler());
|
||||
consumer.setBeanName("testBridge");
|
||||
consumer.afterPropertiesSet();
|
||||
|
||||
Reference in New Issue
Block a user