Package protobuf_unittest.UnittestProto

Examples of protobuf_unittest.UnittestProto.Int64Message


    assertEquals((byte) 89, result.get());
  }

  public void testCompatibleTypes() throws Exception {
    long data = 0x100000000L;
    Int64Message message = Int64Message.newBuilder().setData(data).build();
    ByteString serialized = message.toByteString();

    // Test int64(long) is compatible with bool(boolean)
    BoolMessage msg2 = BoolMessage.parseFrom(serialized);
    assertTrue(msg2.getData());
View Full Code Here


    assertEquals((byte) 89, result.get());
  }

  public void testCompatibleTypes() throws Exception {
    long data = 0x100000000L;
    Int64Message message = Int64Message.newBuilder().setData(data).build();
    ByteString serialized = message.toByteString();

    // Test int64(long) is compatible with bool(boolean)
    BoolMessage msg2 = BoolMessage.parseFrom(serialized);
    assertTrue(msg2.getData());
View Full Code Here

TOP

Related Classes of protobuf_unittest.UnittestProto.Int64Message

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.