Package org.serviceconnector.scmp

Examples of org.serviceconnector.scmp.SCMPOffsetPart


    int offset = 0;
    while (largeRequest.hasNext()) {
      SCMPMessage message = largeRequest.getNext();

      SCMPOffsetPart responsePart = new SCMPOffsetPart(largeScmp, offset, sb.length());
      offset += responsePart.getBodyLength();
      Assert.assertEquals(responsePart.getBody().toString(), message.getBody().toString());
      Assert.assertEquals(responsePart.getBodyLength(), message.getBodyLength());
      Assert.assertEquals(responsePart.getBodyOffset(), message.getBodyOffset());
      Assert.assertEquals(responsePart.getBodyType(), message.getBodyType());
    }

    SCMPOffsetPart firstPart = new SCMPOffsetPart(largeScmp, 0, sb.length());
    SCMPMessage message = largeRequest.getFirst();
    Assert.assertEquals(firstPart.getBody().toString(), message.getBody().toString());
    Assert.assertEquals(firstPart.getBodyLength(), message.getBodyLength());
    Assert.assertEquals(firstPart.getBodyOffset(), message.getBodyOffset());
    Assert.assertEquals(firstPart.getBodyType(), message.getBodyType());
  }
View Full Code Here


    int offset = 0;
    while (largeRequest.hasNext()) {
      SCMPMessage message = largeRequest.getNext();

      SCMPOffsetPart responsePart = new SCMPOffsetPart(largeScmp, offset, sb.length());
      offset += responsePart.getBodyLength();
      Assert.assertEquals(responsePart.getBody().toString(), message.getBody().toString());
      Assert.assertEquals(responsePart.getBodyLength(), message.getBodyLength());
      Assert.assertEquals(responsePart.getBodyOffset(), message.getBodyOffset());
      Assert.assertEquals(responsePart.getBodyType(), message.getBodyType());
    }

    SCMPOffsetPart firstPart = new SCMPOffsetPart(largeScmp, 0, sb.length());
    SCMPMessage message = largeRequest.getFirst();
    Assert.assertEquals(firstPart.getBody().toString(), message.getBody().toString());
    Assert.assertEquals(firstPart.getBodyLength(), message.getBodyLength());
    Assert.assertEquals(firstPart.getBodyOffset(), message.getBodyOffset());
    Assert.assertEquals(firstPart.getBodyType(), message.getBodyType());
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.scmp.SCMPOffsetPart

Copyright © 2018 www.massapicom. 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.