mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-03 13:51:44 +08:00
优化重构部分支付相关代码
This commit is contained in:
@ -33,9 +33,8 @@ public class WxPayRefundQueryResultTest {
|
||||
" <transaction_id><![CDATA[1008450740201411110005820873]]></transaction_id>\n" +
|
||||
"</xml>";
|
||||
|
||||
WxPayRefundQueryResult result = new WxPayRefundQueryResult();
|
||||
result.setRefundCount(1);
|
||||
result.composeRefundRecords(xmlString);
|
||||
WxPayRefundQueryResult result = WxPayRefundQueryResult.fromXML(xmlString, WxPayRefundQueryResult.class);
|
||||
result.composeRefundRecords();
|
||||
|
||||
Assert.assertNotNull(result.getRefundRecords());
|
||||
Assert.assertEquals(result.getRefundRecords().size(), 1);
|
||||
|
||||
Reference in New Issue
Block a user