清理代码

This commit is contained in:
Binary Wang
2017-03-10 16:42:07 +08:00
parent 7340e03636
commit d9472e4e4c
3 changed files with 1 additions and 21 deletions

View File

@ -17,8 +17,7 @@ public class ApiTestModule implements Module {
@Override
public void configure(Binder binder) {
try (InputStream is1 = ClassLoader.getSystemResourceAsStream("test-config.xml")) {
TestConfigStorage config = this
.fromXml(TestConfigStorage.class, is1);
TestConfigStorage config = this.fromXml(TestConfigStorage.class, is1);
config.setAccessTokenLock(new ReentrantLock());
WxMpService wxService = new WxMpServiceImpl();
wxService.setWxMpConfigStorage(config);