use of com.hazelcast.internal.serialization.impl.HeapData in project hazelcast by hazelcast.
the class EntryEventDataCacheTest method eventDataExcludingValues_whenDataIncludingValuesAreCached.
@Test
public void eventDataExcludingValues_whenDataIncludingValuesAreCached() throws Exception {
// when: no EntryEventData values have been created
EntryEventData eed = instance.getOrCreateEventData("test", ADDRESS, new HeapData(), new Object(), new Object(), new Object(), EntryEventType.ADDED.getType(), true);
// then: the cache is empty & eventDataIncludingValues returns null or empty collection
assertTrue(instance.eventDataExcludingValues() == null || instance.eventDataExcludingValues().isEmpty());
}
use of com.hazelcast.internal.serialization.impl.HeapData in project hazelcast by hazelcast.
the class EntryEventDataCacheTest method isEmpty_whenEntryEventDataHaveBeenCreated.
@Test
public void isEmpty_whenEntryEventDataHaveBeenCreated() throws Exception {
// when: EntryEventData have been getOrCreate'd
instance.getOrCreateEventData("test", ADDRESS, new HeapData(), new Object(), new Object(), new Object(), EntryEventType.ADDED.getType(), false);
// then: the cache is not empty
assertFalse(instance.isEmpty());
}
use of com.hazelcast.internal.serialization.impl.HeapData in project hazelcast by hazelcast.
the class OutboundResponseHandlerTest method testToBackupAckPacket.
private void testToBackupAckPacket(int callId, boolean urgent) {
Packet packet = handler.toBackupAckPacket(callId, urgent);
HeapData expected = serializationService.toData(new BackupAckResponse(callId, urgent));
assertEquals(expected, new HeapData(packet.toByteArray()));
}
Aggregations