完善微信支付 下载对账单 的接口 #65

This commit is contained in:
DDLeEHi
2017-05-24 10:40:32 +08:00
committed by Binary Wang
parent 1806389a4d
commit 9d2fb9fe3d
5 changed files with 426 additions and 8 deletions

View File

@ -49,8 +49,9 @@ public class WxPayServiceImplTest {
@Test
public void testDownloadBill() throws Exception {
File file = this.payService.downloadBill("20170101", "ALL", "GZIP", "1111111");
assertNotNull(file);
WxPayBillResult wxPayBillResult = this.payService.downloadBill("20170101", "ALL", "GZIP", "1111111");
//前一天没有账单记录返回null
assertNotNull(wxPayBillResult);
//必填字段为空时,抛出异常
this.payService.downloadBill("", "", "", null);
}