Skip to content

Commit

Permalink
Release 3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexxiyang committed Mar 23, 2019
1 parent ec452ba commit a9b1a4b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can choose these 2 ways to include shiro-redis into your project
<dependency>
<groupId>org.crazycake</groupId>
<artifactId>shiro-redis</artifactId>
<version>3.2.2</version>
<version>3.2.3</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.crazycake</groupId>
<artifactId>shiro-redis</artifactId>
<version>3.2.2</version>
<version>3.2.3</version>
<packaging>jar</packaging>

<name>shiro-redis</name>
Expand Down
7 changes: 7 additions & 0 deletions src/test/java/org/crazycake/shiro/RedisCacheManagerTest.java
Original file line number Diff line number Diff line change
@@ -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 {

Expand All @@ -20,6 +22,11 @@ public void setUp() {
redisCacheManager.setRedisManager(redisManager);
}

@After
public void tearDown() {
blastRedis();
}

@Test
public void testGetCache() {
Cache cache = redisCacheManager.getCache("testCache1");
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {

Expand All @@ -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);
Expand Down

0 comments on commit a9b1a4b

Please sign in to comment.