1
2
3
4
5
6
7 package org.mule.transport.sftp;
8
9 import org.junit.Test;
10
11
12
13
14 public class SftpSizeCheckFunctionalTestCase extends AbstractSftpTestCase
15 {
16
17 private static final long TIMEOUT = 15000;
18
19
20 final static int SEND_SIZE = 1024 * 1024 * 2;
21
22 @Override
23 protected String getConfigResources()
24 {
25 return "mule-sftp-sizeCheck-test-config.xml";
26 }
27
28 @Override
29 protected void doSetUp() throws Exception
30 {
31 super.doSetUp();
32
33 initEndpointDirectory("inboundEndpoint");
34 }
35
36
37
38
39 @Test
40 public void testSizeCheck() throws Exception
41 {
42
43
44
45
46 executeBaseTest("inboundEndpoint", "vm://test.upload", FILE_NAME, SEND_SIZE, "receiving", TIMEOUT);
47 }
48 }