mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
修复单元测试问题
This commit is contained in:
parent
ae4cf4d9d0
commit
ee3be3b33c
@ -6,6 +6,7 @@ import me.chanjar.weixin.common.util.xml.XStreamInitializer;
|
|||||||
import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
|
import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.util.concurrent.locks.ReentrantLock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Daniel Qian
|
* @author Daniel Qian
|
||||||
@ -16,7 +17,11 @@ class WxMpDemoInMemoryConfigStorage extends WxMpInMemoryConfigStorage {
|
|||||||
public static WxMpDemoInMemoryConfigStorage fromXml(InputStream is) {
|
public static WxMpDemoInMemoryConfigStorage fromXml(InputStream is) {
|
||||||
XStream xstream = XStreamInitializer.getInstance();
|
XStream xstream = XStreamInitializer.getInstance();
|
||||||
xstream.processAnnotations(WxMpDemoInMemoryConfigStorage.class);
|
xstream.processAnnotations(WxMpDemoInMemoryConfigStorage.class);
|
||||||
return (WxMpDemoInMemoryConfigStorage) xstream.fromXML(is);
|
WxMpDemoInMemoryConfigStorage wxMpDemoInMemoryConfigStorage = (WxMpDemoInMemoryConfigStorage) xstream.fromXML(is);
|
||||||
|
wxMpDemoInMemoryConfigStorage.accessTokenLock = new ReentrantLock();
|
||||||
|
wxMpDemoInMemoryConfigStorage.cardApiTicketLock = new ReentrantLock();
|
||||||
|
wxMpDemoInMemoryConfigStorage.jsapiTicketLock = new ReentrantLock();
|
||||||
|
return wxMpDemoInMemoryConfigStorage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user