Implemented BLPOP

This commit is contained in:
Jonathan Leibiusky
2010-08-03 00:32:13 -03:00
parent 3dd7ca6f2a
commit ef5518e581
8 changed files with 63 additions and 9 deletions

View File

@@ -102,6 +102,15 @@ public class ProtocolTest extends Assert {
expected2.add(sub);
assertEquals(expected2, response2);
}
@SuppressWarnings("unchecked")
@Test
public void nullMultiBulkReply() throws JedisException {
InputStream is = new ByteArrayInputStream("*-1\r\n".getBytes());
Protocol protocol = new Protocol();
List<String> response = (List<String>) (List<?>) protocol
.getMultiBulkReply(is);
assertNull(response);
}
}