INT-1263, more MessageHistory changes FTP, SFTP etc.
This commit is contained in:
@@ -99,5 +99,9 @@ public class RmiInboundGateway extends RemotingInboundGatewaySupport implements
|
||||
}
|
||||
super.onInit();
|
||||
}
|
||||
|
||||
public String getComponentType(){
|
||||
return "rmi:inbound-gateway";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user