Renamed InboundChannelAdapter to SourcePollingChannelAdapter since other event-driven inbound Channel Adapters may extend AbstractMessageProducingEndpoint directly.

This commit is contained in:
Mark Fisher
2008-09-17 23:29:46 +00:00
parent baa1474ef9
commit 8f9c709f25
7 changed files with 17 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ import org.springframework.beans.DirectFieldAccessor;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.integration.ConfigurationException;
import org.springframework.integration.endpoint.InboundChannelAdapter;
import org.springframework.integration.endpoint.SourcePollingChannelAdapter;
import org.springframework.integration.message.Message;
import org.springframework.integration.message.PollableSource;
@@ -52,8 +52,8 @@ public class ConsoleSourceParserTests {
public void testConsoleSourceWithDefaultCharset() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"consoleSourceParserTests.xml", ConsoleSourceParserTests.class);
InboundChannelAdapter adapter =
(InboundChannelAdapter) context.getBean("sourceWithDefaultCharset.adapter");
SourcePollingChannelAdapter adapter =
(SourcePollingChannelAdapter) context.getBean("sourceWithDefaultCharset.adapter");
PollableSource<?> source = (PollableSource<?>) new DirectFieldAccessor(adapter).getPropertyValue("source");
DirectFieldAccessor sourceAccessor = new DirectFieldAccessor(source);
Reader bufferedReader = (Reader) sourceAccessor.getPropertyValue("reader");
@@ -72,8 +72,8 @@ public class ConsoleSourceParserTests {
public void testConsoleSourceWithProvidedCharset() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"consoleSourceParserTests.xml", ConsoleSourceParserTests.class);
InboundChannelAdapter adapter =
(InboundChannelAdapter) context.getBean("sourceWithProvidedCharset.adapter");
SourcePollingChannelAdapter adapter =
(SourcePollingChannelAdapter) context.getBean("sourceWithProvidedCharset.adapter");
PollableSource<?> source = (PollableSource<?>) new DirectFieldAccessor(adapter).getPropertyValue("source");
DirectFieldAccessor sourceAccessor = new DirectFieldAccessor(source);
Reader bufferedReader = (Reader) sourceAccessor.getPropertyValue("reader");