From 7671e59deae855d99c9abf1ef734450ad8ac6e51 Mon Sep 17 00:00:00 2001 From: Rui Gu Date: Fri, 1 Apr 2016 13:28:34 +0100 Subject: [PATCH] fix: Before and After method should not be static --- src/test/java/org/redisson/RedisClientTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/redisson/RedisClientTest.java b/src/test/java/org/redisson/RedisClientTest.java index 7dee6f00c..80198ed8a 100644 --- a/src/test/java/org/redisson/RedisClientTest.java +++ b/src/test/java/org/redisson/RedisClientTest.java @@ -34,12 +34,12 @@ import org.junit.Before; public class RedisClientTest { @Before - public static void before() throws IOException, InterruptedException { + public void before() throws IOException, InterruptedException { RedisRunner.startDefaultRedisTestInstance(); } @After - public static void after() throws InterruptedException { + public void after() throws InterruptedException { RedisRunner.shutDownDefaultRedisTestInstance(); }