mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-03 13:51:44 +08:00
#251 微信支付证书文件路径配置支持classpath开头的地址
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
1
weixin-java-pay/src/test/resources/.gitignore
vendored
Normal file
1
weixin-java-pay/src/test/resources/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.p12
|
||||
Reference in New Issue
Block a user