#251 微信支付证书文件路径配置支持classpath开头的地址

This commit is contained in:
Binary Wang
2017-06-18 14:48:32 +08:00
parent ec4bf2687c
commit c7ffff0a9c
5 changed files with 54 additions and 7 deletions

View File

@ -0,0 +1,24 @@
package com.github.binarywang.wxpay.config;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
/**
* <pre>
* Created by BinaryWang on 2017/6/18.
* </pre>
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
public class WxPayConfigTest {
private WxPayConfig payConfig = new WxPayConfig();
@Test
public void testInitSSLContext() throws Exception {
payConfig.setMchId("123");
payConfig.setKeyPath("classpath:/abc.p12");
payConfig.initSSLContext();
}
}

View File

@ -0,0 +1 @@
*.p12