mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
issue #66 微信消息去重功能
This commit is contained in:
@@ -3,15 +3,12 @@ package me.chanjar.weixin.common.util;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* Created by qianjia on 15/1/20.
|
||||
*/
|
||||
@Test
|
||||
public class WxMsgIdInMemoryDuplicateCheckerTest {
|
||||
public class WxMsgIdMemoryDuplicateCheckerTest {
|
||||
|
||||
public void test() throws InterruptedException {
|
||||
Long[] msgIds = new Long[] { 1l, 2l, 3l, 4l, 5l, 6l, 7l, 8l };
|
||||
WxMsgIdInMemoryDuplicateChecker checker = new WxMsgIdInMemoryDuplicateChecker(2000l, 1000l);
|
||||
WxMsgIdMemoryDuplicateChecker checker = new WxMsgIdMemoryDuplicateChecker(2000l, 1000l);
|
||||
|
||||
// 第一次检查
|
||||
for (Long msgId : msgIds) {
|
||||
Reference in New Issue
Block a user