Examples of WaitDecoder


Examples of org.discoproject.worker.protocol.decoder.WaitDecoder

  }

  @Test
  public void testWaitDecoder() {
    final HeaderDecoder headerDecoder = new HeaderDecoder();
    final WaitDecoder decoder = new WaitDecoder();

    final String inputStr = "WAIT 3 100\n";
    final ByteBuffer bb = ByteBuffer.wrap(inputStr.getBytes());

    decoder.parse(bb, headerDecoder.parse(bb).getPayloadLength());
    assertEquals(100, decoder.getPauseSeconds());
  }
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.