From 9c567a6e985c08fc15dc2088f10c10cd52b8f855 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Thu, 18 Jan 2018 15:27:53 +0800 Subject: [PATCH] update --- .../impls/CustomerImpressionImplTest.java | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/test/java/au/com/royalpay/payment/manage/apps/core/impls/CustomerImpressionImplTest.java b/src/test/java/au/com/royalpay/payment/manage/apps/core/impls/CustomerImpressionImplTest.java index d62d26edf..d40bbe97c 100644 --- a/src/test/java/au/com/royalpay/payment/manage/apps/core/impls/CustomerImpressionImplTest.java +++ b/src/test/java/au/com/royalpay/payment/manage/apps/core/impls/CustomerImpressionImplTest.java @@ -1,11 +1,5 @@ package au.com.royalpay.payment.manage.apps.core.impls; -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; - import javax.annotation.Resource; import org.junit.Test; @@ -15,14 +9,10 @@ import org.springframework.data.redis.core.BoundListOperations; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringRunner; -import org.springframework.util.CollectionUtils; import com.alibaba.fastjson.JSONObject; -import au.com.royalpay.payment.manage.apps.core.CustomerImpressionService; import au.com.royalpay.payment.manage.mappers.payment.OrderMapper; -import au.com.royalpay.payment.manage.mappers.system.ClientMapper; -import au.com.royalpay.payment.manage.mappers.system.CustomerRelationAlipayMapper; /** * Created by wangning on 05/01/2018. @@ -42,16 +32,8 @@ public class CustomerImpressionImplTest { BoundListOperations ops = stringRedisTemplate.boundListOps("customer_impression"); JSONObject order = orderMapper.find("00009201711300930013961422"); for (int i = 0; i < 10000; i++) { - synchronized (lock) { - ops.rightPush(order.toJSONString()); - } + ops.rightPush(order.toJSONString()); } - System.out.println("asdsada"); - System.out.println("asdsada"); - System.out.println("asdsada"); - System.out.println("asdsada"); - System.out.println("asdsada"); - System.out.println("asdsada"); } } \ No newline at end of file