use of com.google.protobuf.UInt64Value in project core-java by SpineEventEngine.
the class TypeConverterShould method map_uint64_to_long.
@Test
public void map_uint64_to_long() {
final long value = 42L;
final UInt64Value wrapped = UInt64Value.newBuilder().setValue(value).build();
final Any packed = AnyPacker.pack(wrapped);
final long mapped = TypeConverter.toObject(packed, Long.class);
assertEquals(value, mapped);
}
Aggregations