32 lines
877 B
Java
32 lines
877 B
Java
|
package youhong.ai.pcn;
|
||
|
|
||
|
import aiyh.utils.fileUtil.sftp.SftpConnectUtil;
|
||
|
import baseTest.BaseTest;
|
||
|
import org.junit.Test;
|
||
|
import weaver.general.GCONST;
|
||
|
import weaver.youhong.ai.pcn.hrorganization.sftp.FetchDataUtil;
|
||
|
|
||
|
/**
|
||
|
* <h1>测试类</h1>
|
||
|
*
|
||
|
* <p>create: 2022-11-22 15:56</p>
|
||
|
*
|
||
|
* @author youHong.ai
|
||
|
*/
|
||
|
|
||
|
public class TestOrganization extends BaseTest {
|
||
|
|
||
|
|
||
|
@Test
|
||
|
public void testSftp(){
|
||
|
SftpConnectUtil sftpConnectUtil = new SftpConnectUtil(
|
||
|
"HR Digital_PROD",
|
||
|
"/Users/aoey.oct.22/company/Fan_wei/ssl/pcn/HR_Digital_PROD.ppk",null,"222.73.197.242",
|
||
|
null,1000 * 10
|
||
|
);
|
||
|
FetchDataUtil fetchDataUtil = new FetchDataUtil();
|
||
|
fetchDataUtil.downloadFile(sftpConnectUtil,
|
||
|
"HRIS_DepartmentExport20200503", GCONST.getSysFilePath() + "HRIS_DepartmentExport20200503.csv");
|
||
|
}
|
||
|
}
|