INT-3827: Fix Test Case

This commit is contained in:
Gary Russell
2015-09-29 16:22:17 -04:00
parent 00bd41f8fd
commit 474427926d
2 changed files with 9 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
<int-sftp:inbound-channel-adapter id="sftpAdapterAutoCreate"
session-factory="sftpSessionFactory"
channel="requestChannel"
remote-directory="/sftpSource"
remote-directory="sftpSource"
local-directory="file:local-test-dir/rollback"
auto-create-local-directory="true"
filename-pattern="sftpSource1.txt"

View File

@@ -23,6 +23,8 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -39,6 +41,12 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
public class RollbackLocalFilterTests {
@BeforeClass
@AfterClass
public static void clean() {
new File("local-test-dir/rollback/sftpSource1.txt").delete();
}
@Autowired
private Crash crash;