1
0
mirror of synced 2025-12-17 04:43:15 +08:00

add test for reverseOdrer method

This commit is contained in:
Binary Wang
2017-03-24 11:12:00 +08:00
parent 3f4cdb7bf5
commit 9acb01cd17
2 changed files with 20 additions and 1 deletions

View File

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

View File

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