com.alipay.api.response.AlipayOfflineMaterialImageUploadResponse Java Examples
The following examples show how to use
com.alipay.api.response.AlipayOfflineMaterialImageUploadResponse.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CertificateExecuteWithFileUploadTest.java From alipay-sdk-java-all with Apache License 2.0 | 5 votes |
@Test public void should_be_able_to_upload_file() throws AlipayApiException { AlipayClient client = new DefaultAlipayClient(TestAccount.ProdCert.CERT_PARAMS); AlipayOfflineMaterialImageUploadRequest request = new AlipayOfflineMaterialImageUploadRequest(); request.setImageType("jpg"); request.setImageName("海底捞"); FileItem imageContent = new FileItem(getTestImagePath()); request.setImagePid("2088021822217233"); request.setImageContent(imageContent); AlipayOfflineMaterialImageUploadResponse response = client.certificateExecute(request); assertThat(response.getSubMsg(), containsString("ISV权限不足")); }
Example #2
Source File: CertificateExecuteWithFileUploadTest.java From alipay-sdk-java-all with Apache License 2.0 | 5 votes |
@Ignore public void should_be_able_to_upload_file_sm2() throws AlipayApiException { AlipayClient client = new DefaultAlipayClient(TestAccount.DevSM2Cert.SM2_CERT_PARAMS); AlipayOfflineMaterialImageUploadRequest request = new AlipayOfflineMaterialImageUploadRequest(); request.setImageType("jpg"); request.setImageName("海底捞"); FileItem imageContent = new FileItem(getTestImagePath()); request.setImagePid("2088021822217233"); request.setImageContent(imageContent); AlipayOfflineMaterialImageUploadResponse response = client.certificateExecute(request); assertThat(response.getSubMsg(), containsString("ISV权限不足")); }
Example #3
Source File: ExecuteTest.java From alipay-sdk-java-all with Apache License 2.0 | 5 votes |
public void should_be_able_to_upload_file_sm2() throws AlipayApiException { //given alipayClient = new DefaultAlipayClient(TestAccount.DevSM2.GATEWAY, TestAccount.DevSM2.APP_ID, TestAccount.DevSM2.APP_PRIVATE_KEY, "json", "GBK", TestAccount.DevSM2.ALIPAY_PUBLIC_KEY, "SM2"); AlipayOfflineMaterialImageUploadRequest request = new AlipayOfflineMaterialImageUploadRequest(); request.setImageType("jpg"); request.setImageName("海底捞"); FileItem imageContent = new FileItem(getTestImagePath()); request.setImagePid("2088021822217233"); request.setImageContent(imageContent); AlipayOfflineMaterialImageUploadResponse response = alipayClient.execute(request); assertThat(response.getCode(), is("10000")); }
Example #4
Source File: AlipayOfflineMaterialImageUploadRequest.java From alipay-sdk-java-all with Apache License 2.0 | 4 votes |
public Class<AlipayOfflineMaterialImageUploadResponse> getResponseClass() { return AlipayOfflineMaterialImageUploadResponse.class; }
Example #5
Source File: AlipayOfflineMaterialImageUploadRequest.java From alipay-sdk-java-all with Apache License 2.0 | 4 votes |
public Class<AlipayOfflineMaterialImageUploadResponse> getResponseClass() { return AlipayOfflineMaterialImageUploadResponse.class; }
Example #6
Source File: AlipayOfflineMaterialImageUploadRequest.java From alipay-sdk with Apache License 2.0 | 4 votes |
public Class<AlipayOfflineMaterialImageUploadResponse> getResponseClass() { return AlipayOfflineMaterialImageUploadResponse.class; }
Example #7
Source File: AlipayOfflineMaterialImageUploadRequest.java From pay with Apache License 2.0 | 4 votes |
public Class<AlipayOfflineMaterialImageUploadResponse> getResponseClass() { return AlipayOfflineMaterialImageUploadResponse.class; }