实现微信支付下载对账单的接口,还未完成,待调试 #65
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user