Skip to content

Commit 9f2f2f8

Browse files
committed
update test
1 parent 9acb01c commit 9f2f2f8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ public class WxPayServiceImplTest {
3535

3636
@Test
3737
public void testGetPayInfo() throws Exception {
38-
Map<String, String> payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder().body("abc").build());
38+
Map<String, String> payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder()
39+
.body("我去")
40+
.totalFee(1)
41+
.spbillCreateIp("111111")
42+
.notifyURL("111111")
43+
.tradeType("JSAPI")
44+
.outTradeNo("111111")
45+
.openid(((XmlWxPayConfig) this.payService.getConfig()).getOpenid())
46+
.build());
3947
this.logger.info(payInfo.toString());
4048
}
4149

@@ -226,7 +234,6 @@ public void testReverseOrder() throws Exception {
226234
.build());
227235
assertNotNull(result);
228236
this.logger.info(result.toString());
229-
230237
}
231238

232239
}

0 commit comments

Comments
 (0)