use of com.google.protobuf.Int64Value in project core-java by SpineEventEngine.
the class LongFieldValidatorShould method wrap_to_any.
@Test
public void wrap_to_any() {
final Any any = validator.wrap(VALUE);
final Int64Value msg = AnyPacker.unpack(any);
assertEquals(VALUE, (Long) msg.getValue());
}
use of com.google.protobuf.Int64Value in project core-java by SpineEventEngine.
the class IdentifiersShould method convert_to_string_long_id_wrapped_into_message.
@Test
public void convert_to_string_long_id_wrapped_into_message() {
final Long value = 100500L;
final Int64Value id = forLong(value);
final String expected = value.toString();
final String actual = idToString(id);
assertEquals(expected, actual);
}
Aggregations