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; /** *

测试类

* *

create: 2022-11-22 15:56

* * @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.pem",null,"222.73.197.242", null,1000 * 10 ); FetchDataUtil fetchDataUtil = new FetchDataUtil(); fetchDataUtil.downloadFile(sftpConnectUtil, "HRIS_DepartmentExport20200503", GCONST.getSysFilePath() + "HRIS_DepartmentExport20200503.csv"); } }