32 lines
876 B
Java
32 lines
876 B
Java
package youhong.ai.pcn;
|
|
|
|
import ebu7common.youhong.ai.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.pem",null,"222.73.197.242",
|
|
null,1000 * 100
|
|
);
|
|
FetchDataUtil fetchDataUtil = new FetchDataUtil();
|
|
fetchDataUtil.downloadFile(sftpConnectUtil,
|
|
"HRIS_PositionExport20221120", GCONST.getSysFilePath() + "HRIS_PositionExport20221120.csv");
|
|
}
|
|
}
|