use of protos.MessageData in project j2objc by google.
the class MessagesTest method testMergeFromOtherMessage.
public void testMergeFromOtherMessage() throws Exception {
MessageData filledMsg = getFilledMessage();
MessageData.Builder builder = MessageData.newBuilder();
builder.setExtension(MessageFields.msgFe, SubMsg.newBuilder().setIntF(1).build());
builder.mergeFrom(filledMsg);
MessageData msg = builder.build();
checkFields(builder);
checkFields(msg);
}
Aggregations