INT-1263, more MessageHistory changes FTP, SFTP etc.

This commit is contained in:
Oleg Zhurakousky
2010-09-23 09:45:01 -04:00
parent 47befb16f3
commit 32efbae90d
25 changed files with 213 additions and 112 deletions

View File

@@ -99,5 +99,9 @@ public class RmiInboundGateway extends RemotingInboundGatewaySupport implements
}
super.onInit();
}
public String getComponentType(){
return "rmi:inbound-gateway";
}
}

View File

@@ -34,11 +34,13 @@ import org.springframework.integration.rmi.RmiInboundGateway;
public class RmiInboundGatewayParserTests {
@Test
public void gatewayWithDefaults() {
public void gatewayWithDefaultsAndHistory() {
ApplicationContext context = new ClassPathXmlApplicationContext(
"rmiInboundGatewayParserTests.xml", this.getClass());
MessageChannel channel = (MessageChannel) context.getBean("testChannel");
RmiInboundGateway gateway = (RmiInboundGateway) context.getBean("gatewayWithDefaults");
assertEquals("gatewayWithDefaults", gateway.getComponentName());
assertEquals("rmi:inbound-gateway", gateway.getComponentType());
DirectFieldAccessor accessor = new DirectFieldAccessor(gateway);
assertEquals(true, accessor.getPropertyValue("expectReply"));
assertEquals(channel, accessor.getPropertyValue("requestChannel"));

View File

@@ -9,6 +9,8 @@
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/rmi
http://www.springframework.org/schema/integration/rmi/spring-integration-rmi.xsd">
<message-history/>
<channel id="testChannel"/>