2021-11-14 15:29:16 +08:00
|
|
|
package customization.test;
|
|
|
|
|
|
|
|
import aiyh.utils.httpUtil.ResponeVo;
|
|
|
|
import aiyh.utils.httpUtil.util.HttpUtils;
|
|
|
|
import aiyh.utils.mapUtil.ParaMap;
|
|
|
|
import com.api.aiyh_pcn.copy_attachment.dao.ConfigTableData;
|
|
|
|
import com.api.aiyh_pcn.copy_attachment.model.ConfigEmpty;
|
|
|
|
import com.api.aiyh_pcn.copy_attachment.web.CopyAttachment;
|
|
|
|
import org.junit.Test;
|
2021-11-16 09:32:09 +08:00
|
|
|
import weaver.docs.docs.seconddev.CreateDocForJSGJXT;
|
|
|
|
import weaver.docs.pdf.docpreview.ConvertMultiPdfTools;
|
2021-11-14 15:29:16 +08:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author EBU7-dev1-ayh
|
|
|
|
* @create 2021/8/29 0029 17:31
|
|
|
|
* ceshilei
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public class CopyFileTest extends BaseTest{
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testGetConfig(){
|
|
|
|
CopyAttachment copyAttachment = new CopyAttachment();
|
|
|
|
String s = copyAttachment.queryConfig("5");
|
|
|
|
System.out.println(s);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testRequest() throws IOException {
|
|
|
|
HttpUtils httpUtils = new HttpUtils();
|
|
|
|
httpUtils.getGlobalCache().header.put("apiKey","yZGiC98iGbbyQXw3WG19w5rE3swjU3ld");
|
|
|
|
httpUtils.getGlobalCache().paramMap.put("ToKen","1");
|
|
|
|
httpUtils.getGlobalCache().paramMap.put("pageSize","100");
|
|
|
|
httpUtils.getGlobalCache().paramMap.put("page","1");
|
|
|
|
ResponeVo responeVo = httpUtils.apiPost("https://apigwaws-lite.porsche-cloudservice.com/env-101/Eflow/eflow/Services/Services/ToiBuyService.asmx/GetVendorList", null);
|
|
|
|
VendorResult entity = responeVo.getEntity(VendorResult.class);
|
|
|
|
System.out.println(entity);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testInt(){
|
|
|
|
TestVo testVo = new TestVo();
|
|
|
|
System.out.println(testVo);
|
|
|
|
}
|
2021-11-16 09:32:09 +08:00
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testInvoice(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testPdf(){
|
|
|
|
// ConvertMultiPdfTools convertMultiPdfTools = new ConvertMultiPdfTools();
|
|
|
|
CreateDocForJSGJXT createDocForJSGJXT = new CreateDocForJSGJXT();
|
|
|
|
int fileName = createDocForJSGJXT.creatDoc(null, "fileName", 8, "1,2,3");
|
|
|
|
}
|
2021-11-14 15:29:16 +08:00
|
|
|
}
|