update debug command

This commit is contained in:
Jonathan Leibiusky
2011-01-20 11:36:17 -03:00
parent 72d1531c39
commit a13aff5421
2 changed files with 1 additions and 15 deletions

View File

@@ -23,21 +23,9 @@ public class DebugParams {
return debugParams;
}
public static DebugParams SWAPIN(String key) {
DebugParams debugParams = new DebugParams();
debugParams.command = new String[] { "SWAPIN", key };
return debugParams;
}
public static DebugParams RELOAD() {
DebugParams debugParams = new DebugParams();
debugParams.command = new String[] { "RELOAD" };
return debugParams;
}
public static DebugParams SWAPOUT(String key) {
DebugParams debugParams = new DebugParams();
debugParams.command = new String[] { "SWAPOUT", key };
return debugParams;
}
}

View File

@@ -88,11 +88,9 @@ public class ControlCommandsTest extends JedisCommandTestBase {
@Test
public void debug() {
jedis.set("foo", "bar");
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);
}