issue #66 微信消息去重功能

This commit is contained in:
Daniel Qian
2015-01-21 15:15:47 +08:00
parent 5ff2ab6436
commit d3c9679eec
3 changed files with 14 additions and 17 deletions

View File

@@ -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) {