Merge pull request #59 from garyrussell/INTSAMPLES-82

* garyrussell-INTSAMPLES-82:
  INTSAMPLES-82 Fix Exception
This commit is contained in:
Gunnar Hillert
2012-08-06 13:16:30 -04:00
3 changed files with 1 additions and 14 deletions

View File

@@ -18,10 +18,7 @@ package org.springframework.integration.samples.ftp;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.io.File;
import org.apache.log4j.Logger;
import org.apache.commons.io.FileUtils;
import org.junit.After;
import org.junit.Test;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
@@ -59,8 +56,4 @@ public class FtpInboundChannelAdapterSample {
}
@After
public void cleanup() {
FileUtils.deleteQuietly(new File(TestSuite.LOCAL_FTP_TEMP_DIR));
}
}

View File

@@ -21,8 +21,6 @@ import static org.junit.Assert.assertTrue;
import java.io.File;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.junit.After;
import org.junit.Test;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
@@ -70,9 +68,4 @@ public class FtpOutboundGatewaySample {
}
@After
public void cleanup() {
FileUtils.deleteQuietly(new File(TestSuite.LOCAL_FTP_TEMP_DIR));
}
}

View File

@@ -82,6 +82,7 @@ public class TestSuite {
public static void shutDown() {
server.stop();
FileUtils.deleteQuietly(new File(FTP_ROOT_DIR));
FileUtils.deleteQuietly(new File(LOCAL_FTP_TEMP_DIR));
}
}