From 1700ac9def6aab45b70a05dd37aa8162f3c217f3 Mon Sep 17 00:00:00 2001 From: yangchao Date: Fri, 20 Oct 2017 15:32:28 +0800 Subject: [PATCH] remove --- .../com/imadcn/test/redislock/SpringTest.java | 33 ------------- src/test/resources/spring-config.xml | 47 ------------------- 2 files changed, 80 deletions(-) delete mode 100644 src/test/java/com/imadcn/test/redislock/SpringTest.java delete mode 100644 src/test/resources/spring-config.xml diff --git a/src/test/java/com/imadcn/test/redislock/SpringTest.java b/src/test/java/com/imadcn/test/redislock/SpringTest.java deleted file mode 100644 index e6301e0..0000000 --- a/src/test/java/com/imadcn/test/redislock/SpringTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.imadcn.test.redislock; - -import org.springframework.context.support.ClassPathXmlApplicationContext; - -import com.imadcn.framework.lock.redis.RedisLock; -import com.imadcn.framework.lock.redis.RedisLockManager; - -public class SpringTest { - - private static ClassPathXmlApplicationContext context; - private static String configPath = "classpath:spring-config.xml"; - - public SpringTest() { - context = new ClassPathXmlApplicationContext(new String[] {configPath}); - context.start(); - } - - public void testGen() { - RedisLockManager manager = context.getBean(RedisLockManager.class); - RedisLock redisLock = manager.getLock("asd"); - redisLock.lock(); - redisLock.unlock(); - } - - void print(Object object) { - } - - public static void main(String[] args) { - SpringTest test = new SpringTest(); - test.testGen(); - } - -} diff --git a/src/test/resources/spring-config.xml b/src/test/resources/spring-config.xml deleted file mode 100644 index c66d43e..0000000 --- a/src/test/resources/spring-config.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -