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);
}
Aggregations