Search in sources :

Example 1 with NestedMessageId

use of io.spine.test.identifiers.NestedMessageId in project core-java by SpineEventEngine.

the class IdentifiersShould method convert_to_string_message_id_with_message_field.

@Test
public void convert_to_string_message_id_with_message_field() {
    final StringValue value = forString(TEST_ID);
    final NestedMessageId idToConvert = NestedMessageId.newBuilder().setId(value).build();
    final String result = idToString(idToConvert);
    assertEquals(TEST_ID, result);
}
Also used : NestedMessageId(io.spine.test.identifiers.NestedMessageId) Identifiers.idToString(io.spine.base.Identifiers.idToString) Wrapper.forString(io.spine.protobuf.Wrapper.forString) StringValue(com.google.protobuf.StringValue) Test(org.junit.Test)

Aggregations

StringValue (com.google.protobuf.StringValue)1 Identifiers.idToString (io.spine.base.Identifiers.idToString)1 Wrapper.forString (io.spine.protobuf.Wrapper.forString)1 NestedMessageId (io.spine.test.identifiers.NestedMessageId)1 Test (org.junit.Test)1