1
2
3
4
5
6
7 package org.mule.transport.sftp;
8
9 import org.junit.Test;
10
11
12
13
14
15
16
17
18
19
20 public class SftpSendReceiveLargeFileFunctionalTestCase extends AbstractSftpTestCase
21 {
22
23 private static final long TIMEOUT = 600000;
24
25
26 final static int SEND_SIZE = 1024 * 1024 * 200;
27
28 public SftpSendReceiveLargeFileFunctionalTestCase()
29 {
30
31 logger.info("Timeout was set to: " + System.getProperty(TEST_TIMEOUT_SYSTEM_PROPERTY, "-1"));
32 System.setProperty(TEST_TIMEOUT_SYSTEM_PROPERTY, "600000");
33 logger.info("Timeout is now set to: " + System.getProperty(TEST_TIMEOUT_SYSTEM_PROPERTY, "-1"));
34 }
35
36 @Override
37 protected String getConfigResources()
38 {
39
40 return "mule-send-receive-large-file-test-config.xml";
41 }
42
43 @Override
44 protected void doSetUp() throws Exception
45 {
46 super.doSetUp();
47
48 initEndpointDirectory("inboundEndpoint");
49 }
50
51
52
53
54 @Test
55 public void testSendAndReceiveLargeFile() throws Exception
56 {
57 executeBaseTest("inboundEndpoint", "vm://test.upload", "bigfile.txt", SEND_SIZE, "receiving", TIMEOUT);
58 }
59 }