50 lines
1.4 KiB
Java
50 lines
1.4 KiB
Java
|
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;
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|