mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
update test
This commit is contained in:
parent
9acb01cd17
commit
9f2f2f8844
@ -35,7 +35,15 @@ public class WxPayServiceImplTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetPayInfo() throws Exception {
|
public void testGetPayInfo() throws Exception {
|
||||||
Map<String, String> payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder().body("abc").build());
|
Map<String, String> 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());
|
this.logger.info(payInfo.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,7 +234,6 @@ public class WxPayServiceImplTest {
|
|||||||
.build());
|
.build());
|
||||||
assertNotNull(result);
|
assertNotNull(result);
|
||||||
this.logger.info(result.toString());
|
this.logger.info(result.toString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user