add JedisDataException and JedisConnectionException
This commit is contained in:
@@ -6,9 +6,9 @@ import java.util.Map;
|
||||
import org.junit.Test;
|
||||
|
||||
import redis.clients.jedis.Jedis;
|
||||
import redis.clients.jedis.JedisException;
|
||||
import redis.clients.jedis.JedisShardInfo;
|
||||
import redis.clients.jedis.Protocol;
|
||||
import redis.clients.jedis.exceptions.JedisConnectionException;
|
||||
import redis.clients.jedis.tests.commands.JedisCommandTestBase;
|
||||
import redis.clients.util.SafeEncoder;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class JedisTest extends JedisCommandTestBase {
|
||||
jedis.get("foo");
|
||||
}
|
||||
|
||||
@Test(expected = JedisException.class)
|
||||
@Test(expected = JedisConnectionException.class)
|
||||
public void timeoutConnection() throws Exception {
|
||||
jedis = new Jedis("localhost", 6379, 15000);
|
||||
jedis.auth("foobared");
|
||||
|
||||
Reference in New Issue
Block a user