1
0
mirror of synced 2026-02-15 00:58:07 +08:00

#1059 微信支付证书地址参数keyPath支持使用网络地址

This commit is contained in:
Binary Wang
2019-06-02 12:58:43 +08:00
parent f71fed4c6a
commit 60ebb54958
2 changed files with 23 additions and 16 deletions

View File

@@ -14,16 +14,18 @@ import static org.testng.Assert.*;
public class WxPayConfigTest {
private WxPayConfig payConfig = new WxPayConfig();
/**
* Test init ssl context.
*
* @throws Exception the exception
*/
@Test
public void testInitSSLContext() throws Exception {
public void testInitSSLContext_classpath() throws Exception {
payConfig.setMchId("123");
payConfig.setKeyPath("classpath:/abc.p12");
payConfig.initSSLContext();
}
@Test
public void testInitSSLContext_http() throws Exception {
payConfig.setMchId("123");
payConfig.setKeyPath("https://www.baidu.com");
payConfig.initSSLContext();
}
}