Skip to content

Commit 9acb01c

Browse files
committed
add test for reverseOdrer method
1 parent 3f4cdb7 commit 9acb01c

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public boolean useSandboxForWxPay() {
135135

136136
public SSLContext initSSLContext() {
137137
if (null == mchId) {
138-
throw new IllegalArgumentException("请確保mchId已設置");
138+
throw new IllegalArgumentException("请确保商户号mch_id已设置");
139139
}
140140

141141
File file = new File(this.keyPath);

weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,23 @@ public void testMicropay() throws Exception {
210210
.build());
211211
this.logger.info(result.toString());
212212
}
213+
214+
@Test
215+
public void testGetConfig() throws Exception {
216+
}
217+
218+
@Test
219+
public void testSetConfig() throws Exception {
220+
}
221+
222+
@Test
223+
public void testReverseOrder() throws Exception {
224+
WxPayOrderReverseResult result = this.payService.reverseOrder(WxPayOrderReverseRequest.newBuilder()
225+
.outTradeNo("1111")
226+
.build());
227+
assertNotNull(result);
228+
this.logger.info(result.toString());
229+
230+
}
231+
213232
}

0 commit comments

Comments
 (0)