#1059 微信支付证书地址参数keyPath支持使用网络地址
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user