From e4d3bc0a094ff4758dec22eb1b827301763d5f77 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 19 Nov 2010 22:35:42 -0500 Subject: [PATCH] INT-1614 fixed tests in FTP --- .../FtpInboundChannelAdapterParserTests.java | 62 +++++++++--------- ...FtpInboundChannelAdapterSample-context.xml | 6 +- .../FtpOutboundChannelAdapterParserTests.java | 35 +++++++---- ...tpOutboundChannelAdapterSample-context.xml | 1 + .../FtpsInboundChannelAdapterParserTests.java | 9 +-- ...FtpsOutboundChannelAdapterParserTests.java | 36 +++++++---- ...boundRemoteFileSystemSynchronizerTest.java | 63 ++++++++++++------- .../FtpSendingMessageHandlerTest.java | 15 ++--- .../remote-test-dir/a.test | 1 + .../remote-test-dir/b.test | 1 + .../SftpInboundReceiveSample-ignored.xml | 6 +- .../SftpOutboundTransferSample-ignored.xml | 2 +- 12 files changed, 136 insertions(+), 101 deletions(-) diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterParserTests.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterParserTests.java index 59c1a07df9..5f859ee6e5 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterParserTests.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterParserTests.java @@ -16,56 +16,62 @@ package org.springframework.integration.ftp.config; +import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +import java.util.Map; + import org.junit.Test; import org.springframework.beans.factory.FactoryBean; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; +import org.springframework.integration.endpoint.SourcePollingChannelAdapter; import org.springframework.integration.file.remote.session.Session; +import org.springframework.integration.ftp.filters.FtpPatternMatchingFileListFilter; +import org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer; +import org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizingMessageSource; import org.springframework.integration.ftp.session.DefaultFtpSessionFactory; +import org.springframework.integration.test.util.TestUtils; /** * @author Oleg Zhurakousky */ public class FtpInboundChannelAdapterParserTests { -// @Test -// public void testFtpInboundChannelAdapterComplete() throws Exception{ -// ApplicationContext ac = -// new ClassPathXmlApplicationContext("FtpInboundChannelAdapterParserTests-context.xml", this.getClass()); -// SourcePollingChannelAdapter adapter = ac.getBean("ftpInbound", SourcePollingChannelAdapter.class); -// assertEquals("ftpInbound", adapter.getComponentName()); -// assertEquals("ftp:inbound-channel-adapter", adapter.getComponentType()); -// assertNotNull(TestUtils.getPropertyValue(adapter, "poller")); -// assertEquals(ac.getBean("ftpChannel"), TestUtils.getPropertyValue(adapter, "outputChannel")); -// FtpInboundFileSynchronizingMessageSource inbound = -// (FtpInboundFileSynchronizingMessageSource) TestUtils.getPropertyValue(adapter, "source"); -// -// FtpInboundFileSynchronizer fisync = -// (FtpInboundFileSynchronizer) TestUtils.getPropertyValue(inbound, "synchronizer"); -//// CompositeFileListFilter filter = (CompositeFileListFilter) TestUtils.getPropertyValue(fisync, "filter"); -//// Set filters = (Set) TestUtils.getPropertyValue(filter, "fileFilters"); -//// assertEquals(2, filters.size()); -//// assertTrue(filters.contains(ac.getBean("entryListFilter"))); -// -// } + @Test + public void testFtpInboundChannelAdapterComplete() throws Exception{ + ApplicationContext ac = + new ClassPathXmlApplicationContext("FtpInboundChannelAdapterParserTests-context.xml", this.getClass()); + SourcePollingChannelAdapter adapter = ac.getBean("ftpInbound", SourcePollingChannelAdapter.class); + assertEquals("ftpInbound", adapter.getComponentName()); + assertEquals("ftp:inbound-channel-adapter", adapter.getComponentType()); + assertNotNull(TestUtils.getPropertyValue(adapter, "poller")); + assertEquals(ac.getBean("ftpChannel"), TestUtils.getPropertyValue(adapter, "outputChannel")); + FtpInboundFileSynchronizingMessageSource inbound = + (FtpInboundFileSynchronizingMessageSource) TestUtils.getPropertyValue(adapter, "source"); + + FtpInboundFileSynchronizer fisync = + (FtpInboundFileSynchronizer) TestUtils.getPropertyValue(inbound, "synchronizer"); + FtpPatternMatchingFileListFilter filter = (FtpPatternMatchingFileListFilter) TestUtils.getPropertyValue(fisync, "filter"); + assertNotNull(filter); + } @Test public void testFtpInboundChannelAdapterCompleteNoId() throws Exception{ ApplicationContext ac = new ClassPathXmlApplicationContext("FtpInboundChannelAdapterParserTests-context.xml", this.getClass()); -// Map spcas = ac.getBeansOfType(SourcePollingChannelAdapter.class); -// SourcePollingChannelAdapter adapter = null; -// for (String key : spcas.keySet()) { -// if (!key.equals("ftpInbound")){ -// adapter = spcas.get(key); -// } -// } -// assertNotNull(adapter); + Map spcas = ac.getBeansOfType(SourcePollingChannelAdapter.class); + SourcePollingChannelAdapter adapter = null; + for (String key : spcas.keySet()) { + if (!key.equals("ftpInbound")){ + adapter = spcas.get(key); + } + } + assertNotNull(adapter); } public static class TestSessionFactoryBean implements FactoryBean{ diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterSample-context.xml b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterSample-context.xml index f7e88c68c8..caa588d367 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterSample-context.xml +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpInboundChannelAdapterSample-context.xml @@ -7,7 +7,7 @@ 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"> - + @@ -16,11 +16,11 @@ diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterParserTests.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterParserTests.java index 8b0b11361b..c8247cde66 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterParserTests.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterParserTests.java @@ -15,10 +15,19 @@ */ package org.springframework.integration.ftp.config; +import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.assertNotNull; +import static junit.framework.Assert.assertTrue; + import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; +import org.springframework.integration.endpoint.EventDrivenConsumer; +import org.springframework.integration.file.remote.session.CachingSessionFactory; +import org.springframework.integration.ftp.outbound.FtpSendingMessageHandler; +import org.springframework.integration.ftp.session.DefaultFtpSessionFactory; +import org.springframework.integration.test.util.TestUtils; /** * @author Oleg Zhurakousky @@ -30,18 +39,18 @@ public class FtpOutboundChannelAdapterParserTests { public void testFtpOutboundChannelAdapterComplete() throws Exception{ ApplicationContext ac = new ClassPathXmlApplicationContext("FtpOutboundChannelAdapterParserTests-context.xml", this.getClass()); -// Object consumer = ac.getBean("ftpOutbound"); -// assertTrue(consumer instanceof EventDrivenConsumer); -// assertEquals(ac.getBean("ftpChannel"), TestUtils.getPropertyValue(consumer, "inputChannel")); -// assertEquals("ftpOutbound", ((EventDrivenConsumer)consumer).getComponentName()); -// FtpSendingMessageHandler handler = (FtpSendingMessageHandler) TestUtils.getPropertyValue(consumer, "handler"); -// assertEquals(ac.getBean("fileNameGenerator"), TestUtils.getPropertyValue(handler, "fileNameGenerator")); -// assertEquals("UTF-8", TestUtils.getPropertyValue(handler, "charset")); -// assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolder")); -// assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolderFile")); -// FtpClientPool clientPoll = (FtpClientPool) TestUtils.getPropertyValue(handler, "ftpClientPool"); -// FtpClientFactory clientFactory = (FtpClientFactory) TestUtils.getPropertyValue(clientPoll, "factory"); -// assertEquals("localhost", TestUtils.getPropertyValue(clientFactory, "host")); -// assertEquals(22, TestUtils.getPropertyValue(clientFactory, "port")); + Object consumer = ac.getBean("ftpOutbound"); + assertTrue(consumer instanceof EventDrivenConsumer); + assertEquals(ac.getBean("ftpChannel"), TestUtils.getPropertyValue(consumer, "inputChannel")); + assertEquals("ftpOutbound", ((EventDrivenConsumer)consumer).getComponentName()); + FtpSendingMessageHandler handler = (FtpSendingMessageHandler) TestUtils.getPropertyValue(consumer, "handler"); + assertEquals(ac.getBean("fileNameGenerator"), TestUtils.getPropertyValue(handler, "fileNameGenerator")); + assertEquals("UTF-8", TestUtils.getPropertyValue(handler, "charset")); + assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolder")); + assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolderFile")); + CachingSessionFactory cacheSf = (CachingSessionFactory) TestUtils.getPropertyValue(handler, "sessionFactory"); + DefaultFtpSessionFactory sf = (DefaultFtpSessionFactory) TestUtils.getPropertyValue(cacheSf, "sessionFactory"); + assertEquals("localhost", TestUtils.getPropertyValue(sf, "host")); + assertEquals(22, TestUtils.getPropertyValue(sf, "port")); } } diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterSample-context.xml b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterSample-context.xml index f35930db3f..324fd29460 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterSample-context.xml +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpOutboundChannelAdapterSample-context.xml @@ -18,6 +18,7 @@ diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsInboundChannelAdapterParserTests.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsInboundChannelAdapterParserTests.java index ca43380980..b45612a9d6 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsInboundChannelAdapterParserTests.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsInboundChannelAdapterParserTests.java @@ -18,17 +18,15 @@ package org.springframework.integration.ftp.config; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNotNull; -import static junit.framework.Assert.assertTrue; import java.util.Map; -import java.util.Set; import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.integration.endpoint.SourcePollingChannelAdapter; -import org.springframework.integration.file.filters.CompositeFileListFilter; +import org.springframework.integration.ftp.filters.FtpPatternMatchingFileListFilter; import org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizer; import org.springframework.integration.ftp.inbound.FtpInboundFileSynchronizingMessageSource; import org.springframework.integration.test.util.TestUtils; @@ -53,10 +51,7 @@ public class FtpsInboundChannelAdapterParserTests { FtpInboundFileSynchronizer fisync = (FtpInboundFileSynchronizer) TestUtils.getPropertyValue(inbound, "synchronizer"); -// CompositeFileListFilter filter = (CompositeFileListFilter) TestUtils.getPropertyValue(fisync, "filter"); -// Set filters = (Set) TestUtils.getPropertyValue(filter, "fileFilters"); -// assertEquals(2, filters.size()); -// assertTrue(filters.contains(ac.getBean("entryListFilter"))); + assertNotNull(TestUtils.getPropertyValue(fisync, "filter")); } diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsOutboundChannelAdapterParserTests.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsOutboundChannelAdapterParserTests.java index 9ae9cc6bae..61efdc91e0 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsOutboundChannelAdapterParserTests.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/config/FtpsOutboundChannelAdapterParserTests.java @@ -15,10 +15,20 @@ */ package org.springframework.integration.ftp.config; +import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.assertNotNull; +import static junit.framework.Assert.assertTrue; + import org.junit.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; +import org.springframework.integration.endpoint.EventDrivenConsumer; +import org.springframework.integration.file.remote.session.CachingSessionFactory; +import org.springframework.integration.ftp.outbound.FtpSendingMessageHandler; +import org.springframework.integration.ftp.session.DefaultFtpSessionFactory; +import org.springframework.integration.ftp.session.DefaultFtpsSessionFactory; +import org.springframework.integration.test.util.TestUtils; /** * @author Oleg Zhurakousky @@ -30,18 +40,18 @@ public class FtpsOutboundChannelAdapterParserTests { public void testFtpsOutboundChannelAdapterComplete() throws Exception{ ApplicationContext ac = new ClassPathXmlApplicationContext("FtpsOutboundChannelAdapterParserTests-context.xml", this.getClass()); -// Object consumer = ac.getBean("ftpOutbound"); -// assertTrue(consumer instanceof EventDrivenConsumer); -// assertEquals(ac.getBean("ftpChannel"), TestUtils.getPropertyValue(consumer, "inputChannel")); -// assertEquals("ftpOutbound", ((EventDrivenConsumer)consumer).getComponentName()); -// FtpSendingMessageHandler handler = (FtpSendingMessageHandler) TestUtils.getPropertyValue(consumer, "handler"); -// assertEquals(ac.getBean("fileNameGenerator"), TestUtils.getPropertyValue(handler, "fileNameGenerator")); -// assertEquals("UTF-8", TestUtils.getPropertyValue(handler, "charset")); -// assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolder")); -// assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolderFile")); -// FtpClientPool clientPoll = (FtpClientPool) TestUtils.getPropertyValue(handler, "ftpClientPool"); -// FtpClientFactory clientFactory = (FtpClientFactory) TestUtils.getPropertyValue(clientPoll, "factory"); -// assertEquals("localhost", TestUtils.getPropertyValue(clientFactory, "host")); -// assertEquals(22, TestUtils.getPropertyValue(clientFactory, "port")); + Object consumer = ac.getBean("ftpOutbound"); + assertTrue(consumer instanceof EventDrivenConsumer); + assertEquals(ac.getBean("ftpChannel"), TestUtils.getPropertyValue(consumer, "inputChannel")); + assertEquals("ftpOutbound", ((EventDrivenConsumer)consumer).getComponentName()); + FtpSendingMessageHandler handler = (FtpSendingMessageHandler) TestUtils.getPropertyValue(consumer, "handler"); + assertEquals(ac.getBean("fileNameGenerator"), TestUtils.getPropertyValue(handler, "fileNameGenerator")); + assertEquals("UTF-8", TestUtils.getPropertyValue(handler, "charset")); + assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolder")); + assertNotNull(TestUtils.getPropertyValue(handler, "temporaryBufferFolderFile")); + CachingSessionFactory cacheSf = (CachingSessionFactory) TestUtils.getPropertyValue(handler, "sessionFactory"); + DefaultFtpsSessionFactory sf = (DefaultFtpsSessionFactory) TestUtils.getPropertyValue(cacheSf, "sessionFactory"); + assertEquals("localhost", TestUtils.getPropertyValue(sf, "host")); + assertEquals(22, TestUtils.getPropertyValue(sf, "port")); } } diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/inbound/FtpInboundRemoteFileSystemSynchronizerTest.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/inbound/FtpInboundRemoteFileSystemSynchronizerTest.java index 7b0a50092c..69c0a5c7b7 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/inbound/FtpInboundRemoteFileSystemSynchronizerTest.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/inbound/FtpInboundRemoteFileSystemSynchronizerTest.java @@ -16,7 +16,22 @@ package org.springframework.integration.ftp.inbound; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +import java.io.File; + +import org.apache.commons.net.ftp.FTPClient; +import org.apache.commons.net.ftp.FTPFile; import org.junit.Test; +import org.mockito.Mockito; + +import org.springframework.core.io.FileSystemResource; +import org.springframework.core.io.Resource; +import org.springframework.integration.file.filters.FileListFilter; +import org.springframework.integration.ftp.filters.FtpPatternMatchingFileListFilter; +import org.springframework.integration.ftp.session.DefaultFtpSessionFactory; +import org.springframework.integration.ftp.session.FtpSession; /** * @author Oleg Zhurakousky @@ -27,20 +42,20 @@ public class FtpInboundRemoteFileSystemSynchronizerTest { @SuppressWarnings({ "rawtypes", "unchecked" }) @Test public void testCopyFileToLocalDir() throws Exception { -// File file = new File(System.getProperty("java.io.tmpdir") + "/foo.txt"); -// if (file.exists()){ -// file.delete(); -// } -// FtpInboundFileSynchronizer syncronizer = new FtpInboundFileSynchronizer(); -// FileListFilter filter = new FtpPatternMatchingFileListFilter("foo.txt"); -// syncronizer.setFilter(filter); -// -// DefaultFtpClientFactory factory = mock(DefaultFtpClientFactory.class); -// FTPClient ftpClient = mock(FTPClient.class); -// when(ftpClient.sendNoOp()).thenReturn(true); -// when(factory.getClient()).thenReturn(ftpClient); -// -// QueuedFtpClientPool clientPoll = new QueuedFtpClientPool(factory); + File file = new File(System.getProperty("java.io.tmpdir") + "/foo.txt"); + if (file.exists()){ + file.delete(); + } + FtpInboundFileSynchronizer syncronizer = new FtpInboundFileSynchronizer(); + FileListFilter filter = new FtpPatternMatchingFileListFilter("foo.txt"); + syncronizer.setFilter(filter); + + DefaultFtpSessionFactory factory = mock(DefaultFtpSessionFactory.class); + FtpSession ftpSession = mock(FtpSession.class); + //when(ftpSession.sendNoOp()).thenReturn(true); + when(factory.getSession()).thenReturn(ftpSession); + +// Queue clientPoll = new QueuedFtpClientPool(factory); // // FTPFile f1 = mock(FTPFile.class); // when(f1.isFile()).thenReturn(true); @@ -48,15 +63,15 @@ public class FtpInboundRemoteFileSystemSynchronizerTest { // // FTPFile[] files = new FTPFile[]{f1}; // when(ftpClient.listFiles()).thenReturn(files); -// -// syncronizer.setClientPool(clientPoll); -// syncronizer.setShouldDeleteSourceFile(true); -// syncronizer.afterPropertiesSet(); -// -// Resource localDirectory = new FileSystemResource(System.getProperty("java.io.tmpdir")); -// syncronizer.synchronizeToLocalDirectory(localDirectory); -// -// //verify(ftpClient, times(1)).retrieveFile(Mockito.anyString(), Mockito.any(OutputStream.class)); -// verify(ftpClient, times(1)).deleteFile(Mockito.anyString()); + + syncronizer.setSessionFactory(factory); + syncronizer.setShouldDeleteSourceFile(true); + syncronizer.afterPropertiesSet(); + + File localDirectory = new File(System.getProperty("java.io.tmpdir")); + syncronizer.synchronizeToLocalDirectory(localDirectory); + + //verify(ftpClient, times(1)).retrieveFile(Mockito.anyString(), Mockito.any(OutputStream.class)); + //verify(ftpClient, times(1)).deleteFile(Mockito.anyString()); } } diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpSendingMessageHandlerTest.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpSendingMessageHandlerTest.java index f8f6938392..df8304f4c1 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpSendingMessageHandlerTest.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/outbound/FtpSendingMessageHandlerTest.java @@ -23,24 +23,21 @@ import org.junit.Test; */ public class FtpSendingMessageHandlerTest { + @SuppressWarnings({ "unchecked", "rawtypes" }) @Test - public void placeholder() { - } - -// @SuppressWarnings({ "unchecked", "rawtypes" }) -// @Test -// public void testHandleFileNameMessage() throws Exception { + public void testHandleFileNameMessage() throws Exception { // FtpSendingMessageHandler handler = new FtpSendingMessageHandler(); // //FtpClientPool clientPoll = mock(FtpClientPool.class); -// FTPClient client = mock(FTPClient.class); -// when(client.storeFile(Mockito.anyString(), Mockito.any(InputStream.class))).thenReturn(true); +// FtpSession session = mock(FtpSession.class); +// when(session.put(Mockito.any(InputStream.class), Mockito.anyString())).th +// //when(session.put(Mockito.any(InputStream.class), Mockito.anyString())).thenReturn(true); // when(clientPoll.getClient()).thenReturn(client); // // handler.setFtpClientPool(clientPoll); // handler.handleMessage(new GenericMessage("hello")); // verify(clientPoll, times(1)).getClient(); // verify(client, times(1)).storeFile(Mockito.anyString(), Mockito.any(InputStream.class)); -// } + } // @SuppressWarnings({ "unchecked", "rawtypes" }) // @Test // public void testHandleFileAsByte() throws Exception { diff --git a/spring-integration-sftp/remote-test-dir/a.test b/spring-integration-sftp/remote-test-dir/a.test index e69de29bb2..5ab2f8a432 100644 --- a/spring-integration-sftp/remote-test-dir/a.test +++ b/spring-integration-sftp/remote-test-dir/a.test @@ -0,0 +1 @@ +Hello \ No newline at end of file diff --git a/spring-integration-sftp/remote-test-dir/b.test b/spring-integration-sftp/remote-test-dir/b.test index e69de29bb2..e9029c7668 100644 --- a/spring-integration-sftp/remote-test-dir/b.test +++ b/spring-integration-sftp/remote-test-dir/b.test @@ -0,0 +1 @@ +Bye \ No newline at end of file diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpInboundReceiveSample-ignored.xml b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpInboundReceiveSample-ignored.xml index b498de214f..4176fb6e9d 100644 --- a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpInboundReceiveSample-ignored.xml +++ b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpInboundReceiveSample-ignored.xml @@ -10,7 +10,7 @@ http://www.springframework.org/schema/integration/sftp http://www.springframework.org/schema/integration/sftp/spring-integration-sftp-2.0.xsd"> - + @@ -21,10 +21,10 @@ diff --git a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpOutboundTransferSample-ignored.xml b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpOutboundTransferSample-ignored.xml index 869ced53c1..de9d663707 100644 --- a/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpOutboundTransferSample-ignored.xml +++ b/spring-integration-sftp/src/test/java/org/springframework/integration/sftp/config/SftpOutboundTransferSample-ignored.xml @@ -8,7 +8,7 @@ http://www.springframework.org/schema/integration/sftp http://www.springframework.org/schema/integration/sftp/spring-integration-sftp-2.0.xsd"> - +