diff --git a/docs/README.md b/docs/README.md
index fd4ebde11..c09c6adde 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -16,7 +16,7 @@ You can choose these 2 ways to include shiro-redis into your project
org.crazycake
shiro-redis
- 3.2.2
+ 3.2.3
```
diff --git a/pom.xml b/pom.xml
index fe01c17db..e23dbfa86 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.crazycake
shiro-redis
- 3.2.2
+ 3.2.3
jar
shiro-redis
diff --git a/src/test/java/org/crazycake/shiro/RedisCacheManagerTest.java b/src/test/java/org/crazycake/shiro/RedisCacheManagerTest.java
index bcfd1cf7a..c47c88ef2 100644
--- a/src/test/java/org/crazycake/shiro/RedisCacheManagerTest.java
+++ b/src/test/java/org/crazycake/shiro/RedisCacheManagerTest.java
@@ -1,12 +1,14 @@
package org.crazycake.shiro;
import org.apache.shiro.cache.Cache;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
+import static fixture.TestFixture.*;
public class RedisCacheManagerTest {
@@ -20,6 +22,11 @@ public void setUp() {
redisCacheManager.setRedisManager(redisManager);
}
+ @After
+ public void tearDown() {
+ blastRedis();
+ }
+
@Test
public void testGetCache() {
Cache cache = redisCacheManager.getCache("testCache1");
diff --git a/src/test/java/org/crazycake/shiro/RedisClusterManagerTest.java b/src/test/java/org/crazycake/shiro/RedisClusterManagerTest.java
index 4b06d114d..acfb9cea1 100644
--- a/src/test/java/org/crazycake/shiro/RedisClusterManagerTest.java
+++ b/src/test/java/org/crazycake/shiro/RedisClusterManagerTest.java
@@ -1,5 +1,6 @@
package org.crazycake.shiro;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.JedisCluster;
@@ -9,6 +10,7 @@
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.*;
+import static fixture.TestFixture.*;
public class RedisClusterManagerTest {
@@ -22,6 +24,11 @@ public void setUp() throws Exception {
redisClusterManager.setJedisCluster(jedisCluster);
}
+ @After
+ public void tearDown() {
+ blastRedis();
+ }
+
@Test
public void get() {
byte[] value = redisClusterManager.get(null);