use of com.hazelcast.internal.nearcache.impl.invalidation.Invalidation in project hazelcast by hazelcast.
the class InvalidationTest method testBatchDeserialization.
@Test
public void testBatchDeserialization() {
Data serializedInvalidation = serializationService.toData(batchInvalidation);
BatchNearCacheInvalidation deserializedInvalidation = serializationService.toObject(serializedInvalidation);
assertInvalidation(batchInvalidation, deserializedInvalidation, false);
assertEquals(batchInvalidation.getInvalidations().size(), deserializedInvalidation.getInvalidations().size());
for (Invalidation invalidation : deserializedInvalidation.getInvalidations()) {
assertInvalidation(singleInvalidation, invalidation, true);
}
}
Aggregations