Search in sources :

Example 1 with UUIDCollectionMessage

use of org.apache.ignite.internal.util.UUIDCollectionMessage in project ignite by apache.

the class GridMessageCollectionTest method testMarshal.

/**
 */
@Test
public void testMarshal() {
    UUIDCollectionMessage um0 = UUIDCollectionMessage.of();
    UUIDCollectionMessage um1 = UUIDCollectionMessage.of(randomUUID());
    UUIDCollectionMessage um2 = UUIDCollectionMessage.of(randomUUID(), randomUUID());
    UUIDCollectionMessage um3 = UUIDCollectionMessage.of(randomUUID(), randomUUID(), randomUUID());
    assertNull(um0);
    assertEquals(3, um3.uuids().size());
    proto = 2;
    doTestMarshal(um0, um1, um2, um3);
    proto = 1;
    doTestMarshal(um0, um1, um2, um3);
}
Also used : UUIDCollectionMessage(org.apache.ignite.internal.util.UUIDCollectionMessage) Test(org.junit.Test)

Aggregations

UUIDCollectionMessage (org.apache.ignite.internal.util.UUIDCollectionMessage)1 Test (org.junit.Test)1