added NamedComponent interface, continuing simplification of MessageHistory

This commit is contained in:
Mark Fisher
2010-04-30 20:11:18 +00:00
parent 6ef9eece71
commit 43dd81ff45
20 changed files with 131 additions and 76 deletions

View File

@@ -63,7 +63,7 @@ public class FileInboundChannelAdapterParserTests {
@Test
public void channelName() throws Exception {
AbstractMessageChannel channel = context.getBean("inputDirPoller", AbstractMessageChannel.class);
assertEquals("Channel should be available under specified id", "inputDirPoller", channel.getName());
assertEquals("Channel should be available under specified id", "inputDirPoller", channel.getComponentName());
}
@Test

View File

@@ -69,7 +69,7 @@ public class FileInboundChannelAdapterWithPatternParserTests {
@Test
public void channelName() {
AbstractMessageChannel channel = context.getBean("adapterWithPattern", AbstractMessageChannel.class);
assertEquals("adapterWithPattern", channel.getName());
assertEquals("adapterWithPattern", channel.getComponentName());
}
@Test