优化重构部分支付相关代码

This commit is contained in:
Binary Wang
2017-01-05 12:29:26 +08:00
parent cbf78114f7
commit 55d66ac7c9
4 changed files with 14 additions and 12 deletions

View File

@ -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);