update transaction api with all the new commands

This commit is contained in:
Jonathan Leibiusky
2011-01-20 12:18:25 -03:00
parent 1857dd3413
commit 66fc6be729
7 changed files with 72 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package redis.clients.jedis.tests.commands;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
@@ -621,9 +622,10 @@ public class ListCommandsTest extends JedisCommandTestBase {
}
})).start();
element = jedis.brpoplpush("foo".getBytes(), "bar".getBytes(), 0);
byte[] brpoplpush = jedis.brpoplpush("foo".getBytes(),
"bar".getBytes(), 0);
assertEquals("a", element);
assertTrue(Arrays.equals("a".getBytes(), brpoplpush));
assertEquals(1, jedis.llen("bar").longValue());
assertEquals("a", jedis.lrange("bar", 0, -1).get(0));