Search in sources :

Example 1 with StandardSessionManager

use of me.chanjar.weixin.common.session.StandardSessionManager in project weixin-java-tools by chanjarster.

the class WxCpMessageRouterTest method standardSessionManager.

@DataProvider
public Object[][] standardSessionManager() {
    // 故意把session存活时间变短,清理更频繁
    StandardSessionManager ism = new StandardSessionManager();
    ism.setMaxInactiveInterval(1);
    ism.setProcessExpiresFrequency(1);
    ism.setBackgroundProcessorDelay(1);
    return new Object[][] { new Object[] { ism } };
}
Also used : StandardSessionManager(me.chanjar.weixin.common.session.StandardSessionManager) DataProvider(org.testng.annotations.DataProvider)

Example 2 with StandardSessionManager

use of me.chanjar.weixin.common.session.StandardSessionManager in project weixin-java-tools by chanjarster.

the class WxMpMessageRouterTest method standardSessionManager.

@DataProvider
public Object[][] standardSessionManager() {
    // 故意把session存活时间变短,清理更频繁
    StandardSessionManager ism = new StandardSessionManager();
    ism.setMaxInactiveInterval(1);
    ism.setProcessExpiresFrequency(1);
    ism.setBackgroundProcessorDelay(1);
    return new Object[][] { new Object[] { ism } };
}
Also used : StandardSessionManager(me.chanjar.weixin.common.session.StandardSessionManager) DataProvider(org.testng.annotations.DataProvider)

Aggregations

StandardSessionManager (me.chanjar.weixin.common.session.StandardSessionManager)2 DataProvider (org.testng.annotations.DataProvider)2