INT-1614 added fileNameGenerator attribute to teh SFTP outbound, added tests

This commit is contained in:
Oleg Zhurakousky
2010-11-16 14:04:56 -05:00
parent ed4ec399bc
commit d38027951d
7 changed files with 61 additions and 16 deletions

View File

@@ -7,17 +7,6 @@
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
http://www.springframework.org/schema/integration/ftp http://www.springframework.org/schema/integration/ftp/spring-integration-ftp-2.0.xsd">
<!-- <bean id="ftpClientFactory" class="org.springframework.integration.ftp.client.DefaultFtpClientFactory">-->
<!-- <property name="host" value="localhost"/>-->
<!-- <property name="port" value="22"/>-->
<!-- <property name="username" value="oleg"/>-->
<!-- <property name="password" value="password"/>-->
<!-- <property name="clientMode" value="1"/>-->
<!-- <property name="fileType" value="2"/>-->
<!-- <property name="remoteWorkingDirectory" value="foo/bar"/>-->
<!-- </bean>-->
<bean id="ftpClientFactory"
class="org.springframework.integration.ftp.config.FtpInboundChannelAdapterParserTests.TestClientFactoryBean"/>

View File

@@ -52,8 +52,5 @@ public class FtpOutboundChannelAdapterParserTests {
FtpClientFactory<?> clientFactory = (FtpClientFactory<?>) TestUtils.getPropertyValue(clientPoll, "factory");
assertEquals("localhost", TestUtils.getPropertyValue(clientFactory, "host"));
assertEquals(22, TestUtils.getPropertyValue(clientFactory, "port"));
// assertEquals("user", TestUtils.getPropertyValue(clientFactory, "username"));
// assertEquals("password", TestUtils.getPropertyValue(clientFactory, "password"));
// assertEquals("foo/bar", TestUtils.getPropertyValue(clientFactory, "remoteWorkingDirectory"));
}
}