1
0
mirror of synced 2025-12-21 08:30:11 +08:00

实现微信支付下载对账单的接口,还未完成,待调试 #65

This commit is contained in:
Binary Wang
2017-01-12 11:12:08 +08:00
parent a2398ddeb1
commit e97c15b6ce
4 changed files with 195 additions and 6 deletions

View File

@@ -8,9 +8,9 @@ import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.api.WxXmlMpInMemoryConfigStorage;
import me.chanjar.weixin.mp.bean.pay.request.*;
import me.chanjar.weixin.mp.bean.pay.result.*;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import org.testng.annotations.*;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -25,6 +25,7 @@ import static org.testng.Assert.*;
@Test
@Guice(modules = ApiTestModule.class)
public class WxMpPayServiceImplTest {
@Inject
protected WxMpService wxService;
@@ -33,6 +34,14 @@ public class WxMpPayServiceImplTest {
}
@Test
public void testDownloadBill() throws Exception {
File file = this.wxService.getPayService().downloadBill("20170101","ALL","GZIP","1111111");
assertNotNull(file);
//必填字段为空时,抛出异常
this.wxService.getPayService().downloadBill("","","",null);
}
@Test
public void testReport() throws Exception {
WxPayReportRequest request = new WxPayReportRequest();