File tree 2 files changed +7
-7
lines changed
weixin-java-pay/src/test/java/com/github/binarywang/wxpay
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public void testUnifiedOrder() throws WxPayException {
67
67
request .setSignType (SignType .HMAC_SHA256 );
68
68
WxPayUnifiedOrderResult result = this .payService .unifiedOrder (request );
69
69
log .info (result .toString ());
70
- // log.warn(this.payService.getWxApiData().toString());
70
+ log .warn (this .payService .getWxApiData ().toString ());
71
71
}
72
72
73
73
/**
Original file line number Diff line number Diff line change 1
1
package com .github .binarywang .wxpay .testbase ;
2
2
3
- import java .io .IOException ;
4
- import java .io .InputStream ;
5
-
6
- import org .slf4j .Logger ;
7
- import org .slf4j .LoggerFactory ;
8
-
9
3
import com .github .binarywang .wxpay .config .WxPayConfig ;
10
4
import com .github .binarywang .wxpay .service .WxPayService ;
11
5
import com .github .binarywang .wxpay .service .impl .WxPayServiceImpl ;
12
6
import com .google .inject .Binder ;
13
7
import com .google .inject .Module ;
14
8
import com .thoughtworks .xstream .XStream ;
15
9
import me .chanjar .weixin .common .util .xml .XStreamInitializer ;
10
+ import org .slf4j .Logger ;
11
+ import org .slf4j .LoggerFactory ;
12
+
13
+ import java .io .IOException ;
14
+ import java .io .InputStream ;
16
15
17
16
/**
18
17
* The type Api test module.
@@ -29,6 +28,7 @@ public void configure(Binder binder) {
29
28
}
30
29
31
30
XmlWxPayConfig config = this .fromXml (XmlWxPayConfig .class , inputStream );
31
+ config .setIfSaveApiData (true );
32
32
WxPayService wxService = new WxPayServiceImpl ();
33
33
wxService .setConfig (config );
34
34
You can’t perform that action at this time.
0 commit comments