Package redis.clients.jedis.tests.commands

Source Code of redis.clients.jedis.tests.commands.ConnectionHandlingCommandsTest

package redis.clients.jedis.tests.commands;

import org.junit.Test;

import redis.clients.jedis.BinaryJedis;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.tests.HostAndPortUtil;

public class ConnectionHandlingCommandsTest extends JedisCommandTestBase {
    protected static HostAndPort hnp = HostAndPortUtil.getRedisServers().get(0);

    @Test
    public void quit() {
  assertEquals("OK", jedis.quit());
    }

    @Test
    public void binary_quit() {
  BinaryJedis bj = new BinaryJedis(hnp.getHost());
  assertEquals("OK", bj.quit());
    }
}
TOP

Related Classes of redis.clients.jedis.tests.commands.ConnectionHandlingCommandsTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.