mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +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() {
|
public SSLContext initSSLContext() {
|
||||||
if (null == mchId) {
|
if (null == mchId) {
|
||||||
throw new IllegalArgumentException("请確保mchId已設置");
|
throw new IllegalArgumentException("请确保商户号mch_id已设置");
|
||||||
}
|
}
|
||||||
|
|
||||||
File file = new File(this.keyPath);
|
File file = new File(this.keyPath);
|
||||||
|
@ -210,4 +210,23 @@ public class WxPayServiceImplTest {
|
|||||||
.build());
|
.build());
|
||||||
this.logger.info(result.toString());
|
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