Skip to content

Commit

Permalink
Add tearDown to testCase
Browse files Browse the repository at this point in the history
  • Loading branch information
alexxiyang committed Mar 18, 2019
1 parent a26ef33 commit ec452ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/org/crazycake/shiro/RedisCacheTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.crazycake.shiro.model.UserInfo;
import org.crazycake.shiro.serializer.ObjectSerializer;
import org.crazycake.shiro.serializer.StringSerializer;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

Expand Down Expand Up @@ -65,6 +66,12 @@ public void setUp() {
scaffold();
}

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


@Test
public void testInitialize() {
try {
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/org/crazycake/shiro/RedisSessionDAOTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.crazycake.shiro.exception.SerializationException;
import org.crazycake.shiro.model.FakeSession;
import org.crazycake.shiro.serializer.StringSerializer;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

Expand Down Expand Up @@ -43,6 +44,11 @@ public void setUp() {
scaffold();
}

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

@Test
public void testDoCreateNull() {
try {
Expand Down

0 comments on commit ec452ba

Please sign in to comment.