浏览代码

add test for reverseOdrer method

master
Binary Wang 8 年前
父节点
当前提交
9acb01cd17
共有 2 个文件被更改,包括 20 次插入1 次删除
  1. +1
    -1
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
  2. +19
    -0
      weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java

+ 1
- 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java 查看文件

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


+ 19
- 0
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java 查看文件

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

}

} }

正在加载...
取消
保存