add getDB() which return the db number we are connected to
This commit is contained in:
@@ -343,6 +343,13 @@ public class AllKindOfValuesCommandsTest extends JedisCommandTestBase {
|
||||
assertArrayEquals(bbar, jedis.get(bfoo));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getDB() {
|
||||
assertEquals(0, jedis.getDB().longValue());
|
||||
jedis.select(1);
|
||||
assertEquals(1, jedis.getDB().longValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void move() {
|
||||
long status = jedis.move("foo", 1);
|
||||
|
||||
Reference in New Issue
Block a user