File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,15 @@ public class WxPayServiceImplTest {
35
35
36
36
@ Test
37
37
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 ());
39
47
this .logger .info (payInfo .toString ());
40
48
}
41
49
@@ -226,7 +234,6 @@ public void testReverseOrder() throws Exception {
226
234
.build ());
227
235
assertNotNull (result );
228
236
this .logger .info (result .toString ());
229
-
230
237
}
231
238
232
239
}
You can’t perform that action at this time.
0 commit comments