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

@ -562,5 +562,5 @@ public interface WxCpService {
* *
* @return WxMpConfigStorage * @return WxMpConfigStorage
*/ */
WxCpConfigStorage getWxMpConfigStorage(); WxCpConfigStorage getWxCpConfigStorage();
} }

View File

@ -94,7 +94,7 @@ public class WxCpServiceImpl extends AbstractWxCpService<CloseableHttpClient, Ht
} }
@Override @Override
public WxCpConfigStorage getWxMpConfigStorage() { public WxCpConfigStorage getWxCpConfigStorage() {
return this.configStorage; return this.configStorage;
} }
} }

View File

@ -65,7 +65,7 @@ public class WxCpServiceImpl extends AbstractWxCpService<HttpConnectionProvider,
} }
@Override @Override
public WxCpConfigStorage getWxMpConfigStorage() { public WxCpConfigStorage getWxCpConfigStorage() {
return this.configStorage; return this.configStorage;
} }
} }

View File

@ -89,7 +89,7 @@ public class WxCpServiceImpl extends AbstractWxCpService<ConnectionPool, OkhttpP
} }
@Override @Override
public WxCpConfigStorage getWxMpConfigStorage() { public WxCpConfigStorage getWxCpConfigStorage() {
return this.configStorage; return this.configStorage;
} }
} }

View File

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

View File

@ -21,7 +21,7 @@ public class WxCpMessageAPITest {
protected WxCpServiceImpl wxService; protected WxCpServiceImpl wxService;
public void testSendCustomMessage() throws WxErrorException { 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(); WxCpMessage message1 = new WxCpMessage();
message1.setAgentId(configStorage.getAgentId()); message1.setAgentId(configStorage.getAgentId());
message1.setMsgType(WxConsts.CUSTOM_MSG_TEXT); message1.setMsgType(WxConsts.CUSTOM_MSG_TEXT);