package redis.clients.jedis.tests.commands;

import static org.junit.Assert.assertEquals;

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());
  }
}
@@ -188,16 +188,50 @@
 ndPort;%0A
+import redis.clients.jedis.Jedis;%0A
 import r
@@ -321,50 +321,19 @@
 est 
-extends JedisCommandTestBase %7B%0A  protected
+%7B%0A  private
  sta
@@ -424,24 +424,58 @@
 id quit() %7B%0A
+    Jedis jedis = new Jedis(hnp);%0A
     assertEq
@@ -587,18 +587,8 @@
 (hnp
-.getHost()
 );%0A 

Modify ConnectionHandlingCommandsTest (#1695)