channel implementations now extend IntegrationObjectSupport, and MethodInvokingMessageProcessor now provides a setter for a ConversionService

This commit is contained in:
Mark Fisher
2010-03-05 20:52:30 +00:00
parent ed5359eee1
commit 590fd3bc5a
11 changed files with 141 additions and 108 deletions

View File

@@ -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() {

View File

@@ -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();