Package protobuf_unittest.UnittestProto

Examples of protobuf_unittest.UnittestProto.Int32Message


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

    // Test int64(long) is compatible with int32(int)
    Int32Message msg3 = Int32Message.parseFrom(serialized);
    assertEquals((int) data, msg3.getData());
  }
View Full Code Here


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

    // Test int64(long) is compatible with int32(int)
    Int32Message msg3 = Int32Message.parseFrom(serialized);
    assertEquals((int) data, msg3.getData());
  }
View Full Code Here

TOP

Related Classes of protobuf_unittest.UnittestProto.Int32Message

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.