Examples of SCMPPart


Examples of org.serviceconnector.scmp.SCMPPart

   * Description: Encode PRQ test<br>
   * Expectation: passes
   */
  @Test
  public void t23_EncodePRQTest() {
    IEncoderDecoder coder = coderFactory.createEncoderDecoder(new SCMPPart());

    this.headKey = SCMPHeaderKey.PRQ;
    String header = "msn=" + msgSequenceNr + "\n" + "bty=" + bodyType.getValue() + "\n" + "mty=" + msgType.getValue() + "\n";

    String expectedString = TestUtil.getSCMPString(headKey, header, body);

    SCMPMessage encodeRes = new SCMPPart();
    encodeRes.setHeader(encodeScmp);
    encodeRes.setBody(body.getBytes());

    OutputStream os = new ByteArrayOutputStream();
    try {
      coder.encode(os, encodeRes);
    } catch (Exception e) {
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.