From 9f2f2f8844795bad42a985c5e96edb536e7931e4 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 24 Mar 2017 14:48:56 +0800 Subject: [PATCH] update test --- .../wxpay/service/impl/WxPayServiceImplTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java index 2bbc09e8..f668e96c 100644 --- a/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java +++ b/weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java @@ -35,7 +35,15 @@ public class WxPayServiceImplTest { @Test public void testGetPayInfo() throws Exception { - Map payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder().body("abc").build()); + Map payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder() + .body("我去") + .totalFee(1) + .spbillCreateIp("111111") + .notifyURL("111111") + .tradeType("JSAPI") + .outTradeNo("111111") + .openid(((XmlWxPayConfig) this.payService.getConfig()).getOpenid()) + .build()); this.logger.info(payInfo.toString()); } @@ -226,7 +234,6 @@ public class WxPayServiceImplTest { .build()); assertNotNull(result); this.logger.info(result.toString()); - } }