Examples of BulkReply


Examples of redis.reply.BulkReply

   * @see DATAREDIS-206
   */
  @Test(expected = IllegalArgumentException.class)
  public void testConverterShouldThrowExceptionWhenGivenReplyArrayMoreThanTwoItems() {

    converter.convert(new Reply[] { new BulkReply(null), new BulkReply(null), new BulkReply(null) });
  }
View Full Code Here

Examples of redis.reply.BulkReply

   * @see DATAREDIS-206
   */
  @Test(expected = NumberFormatException.class)
  public void testConverterShouldThrowExecptionForNonParsableReply() {

    Reply<?> invalidDataBlock = new BulkReply("123-not-a-number".getBytes(Charset.forName("UTF-8")));
    Reply<?> microseconds = new BulkReply("555122".getBytes(Charset.forName("UTF-8")));

    converter.convert(new Reply[] { invalidDataBlock, microseconds });
  }
View Full Code Here

Examples of redis.reply.BulkReply

   * @see DATAREDIS-206
   */
  @Test(expected = IllegalArgumentException.class)
  public void testConverterShouldThrowExecptionForEmptyDataBlocks() {

    Reply<?> invalidDataBlock = new BulkReply(null);
    Reply<?> microseconds = new BulkReply("555122".getBytes(Charset.forName("UTF-8")));

    converter.convert(new Reply[] { invalidDataBlock, microseconds });
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.