Merge branch 'flush' of git://github.com/pietern/jedis into pietern-flush

This commit is contained in:
Jonathan Leibiusky
2011-02-28 10:37:43 -03:00
3 changed files with 18 additions and 3 deletions

View File

@@ -22,11 +22,12 @@ public class ProtocolTest extends JedisTestBase {
PipedInputStream pis = new PipedInputStream();
BufferedInputStream bis = new BufferedInputStream(pis);
PipedOutputStream pos = new PipedOutputStream(pis);
RedisOutputStream ros = new RedisOutputStream(pos);
Protocol protocol = new Protocol();
protocol.sendCommand(new RedisOutputStream(pos), Protocol.Command.GET,
protocol.sendCommand(ros, Protocol.Command.GET,
"SOMEKEY".getBytes(Protocol.CHARSET));
ros.flush();
pos.close();
String expectedCommand = "*2\r\n$3\r\nGET\r\n$7\r\nSOMEKEY\r\n";