Package org.protocol.gtp.prime

Examples of org.protocol.gtp.prime.GtpPrimeHeader


    assertEquals(0x0006, header.getSequenceNumber());
  }

  @Test
  public void testDecodeFromMessageConstructor() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader(properHeader);
    validateHeader(t1);
  }
View Full Code Here


    validateHeader(t1);
  }

  @Test
  public void testEncodeFromMessageConstructor() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader(properHeader);
    validateHeader(t1);
    byte[] tmp = t1.toByteArray();
    assertArrayEquals(properHeader, t1.toByteArray());
  }
View Full Code Here

  }

 
  @Test
  public void testDecodeFromMessage() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader();
    t1.decodeFromMessage(properHeader);
    validateHeader(t1);

  }
View Full Code Here

  }

  @Test(expected = UnrecognizedMessageException.class)
  public void testDecodeFromMessageWrongSpareConstructor() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader(improperReservedHeader);
  }
View Full Code Here

    GtpPrimeHeader t1 = new GtpPrimeHeader(improperReservedHeader);
  }

  @Test(expected = UnrecognizedMessageException.class)
  public void testDecodeFromMessageWrongSpare() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader();
    t1.decodeFromMessage(improperReservedHeader);
  }
View Full Code Here

    t1.decodeFromMessage(improperReservedHeader);
  }

  @Test(expected = UnrecognizedMessageException.class)
  public void testDecodeFromMessageWrongProtocolTypeConstructor() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader(improperReservedHeader);
  }
View Full Code Here

    GtpPrimeHeader t1 = new GtpPrimeHeader(improperReservedHeader);
  }
 
  @Test(expected = UnrecognizedMessageException.class)
  public void testDecodeFromMessageWrongProtocolType() throws Exception {
    GtpPrimeHeader t1 = new GtpPrimeHeader();
    t1.decodeFromMessage(improperProtocolTypeHeader);
  }
View Full Code Here

TOP

Related Classes of org.protocol.gtp.prime.GtpPrimeHeader

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.