Added DEBUG command

This commit is contained in:
Jonathan Leibiusky
2010-09-15 20:17:30 -03:00
parent 3d1546131a
commit 1312c4d4ae
4 changed files with 63 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import java.util.List;
import org.junit.Test;
import redis.clients.jedis.DebugParams;
import redis.clients.jedis.JedisException;
import redis.clients.jedis.JedisMonitor;
@@ -83,4 +84,14 @@ public class ControlCommandsTest extends JedisCommandTestBase {
jedis.sync();
}
@Test
public void debug() {
jedis.set("foo", "bar");
String resp = jedis.debug(DebugParams.OBJECT("foo"));
assertNotNull(resp);
resp = jedis.debug(DebugParams.SWAPIN("foo"));
assertNotNull(resp);
resp = jedis.debug(DebugParams.RELOAD());
assertNotNull(resp);
}
}