WxCpService的getWxMpConfigStorage方法修改为getWxCpConfigStorage

This commit is contained in:
ecoolper
2017-04-27 20:32:05 +08:00
parent f42b22f5c1
commit 57e1f0919b
6 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ public class WxCpBaseAPITest {
protected WxCpServiceImpl wxService;
public void testRefreshAccessToken() throws WxErrorException {
WxCpConfigStorage configStorage = this.wxService.configStorage;
WxCpConfigStorage configStorage = this.wxService.getWxCpConfigStorage();
String before = configStorage.getAccessToken();
this.wxService.getAccessToken(false);

View File

@@ -21,7 +21,7 @@ public class WxCpMessageAPITest {
protected WxCpServiceImpl wxService;
public void testSendCustomMessage() throws WxErrorException {
ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlCpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlCpInMemoryConfigStorage) this.wxService.getWxCpConfigStorage();
WxCpMessage message1 = new WxCpMessage();
message1.setAgentId(configStorage.getAgentId());
message1.setMsgType(WxConsts.CUSTOM_MSG_TEXT);