mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
add test for reverseOdrer method
This commit is contained in:
parent
3f4cdb7bf5
commit
9acb01cd17
@ -135,7 +135,7 @@ public class WxPayConfig {
|
||||
|
||||
public SSLContext initSSLContext() {
|
||||
if (null == mchId) {
|
||||
throw new IllegalArgumentException("请確保mchId已設置");
|
||||
throw new IllegalArgumentException("请确保商户号mch_id已设置");
|
||||
}
|
||||
|
||||
File file = new File(this.keyPath);
|
||||
|
@ -210,4 +210,23 @@ public class WxPayServiceImplTest {
|
||||
.build());
|
||||
this.logger.info(result.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetConfig() throws Exception {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetConfig() throws Exception {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testReverseOrder() throws Exception {
|
||||
WxPayOrderReverseResult result = this.payService.reverseOrder(WxPayOrderReverseRequest.newBuilder()
|
||||
.outTradeNo("1111")
|
||||
.build());
|
||||
assertNotNull(result);
|
||||
this.logger.info(result.toString());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user