🎨 优化代码
This commit is contained in:
@@ -2,8 +2,6 @@ package com.github.binarywang.wxpay.config;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import static org.testng.Assert.*;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Created by BinaryWang on 2017/6/18.
|
||||
@@ -12,12 +10,12 @@ import static org.testng.Assert.*;
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
*/
|
||||
public class WxPayConfigTest {
|
||||
private WxPayConfig payConfig = new WxPayConfig();
|
||||
private final WxPayConfig payConfig = new WxPayConfig();
|
||||
|
||||
@Test
|
||||
public void testInitSSLContext_classpath() throws Exception {
|
||||
payConfig.setMchId("123");
|
||||
payConfig.setKeyPath("classpath:/abc.p12");
|
||||
payConfig.setKeyPath("classpath:/dlt.p12");
|
||||
payConfig.initSSLContext();
|
||||
}
|
||||
|
||||
@@ -28,4 +26,9 @@ public class WxPayConfigTest {
|
||||
payConfig.initSSLContext();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInitSSLContext() throws Exception {
|
||||
this.testInitSSLContext_classpath();
|
||||
this.testInitSSLContext_http();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user