use of com.hazelcast.replicatedmap.impl.record.ReplicatedMapEntryView in project hazelcast by hazelcast.
the class PassThroughMapMergePolicyTest method merge_mergingNull.
@Test
public void merge_mergingNull() {
ReplicatedMapEntryView existing = entryWithGivenValue(EXISTING);
ReplicatedMapEntryView merging = null;
assertEquals(EXISTING, policy.merge("map", merging, existing));
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedMapEntryView in project hazelcast by hazelcast.
the class PutIfAbsentMapMergePolicyTest method merge_existingValueAbsent.
@Test
public void merge_existingValueAbsent() {
ReplicatedMapEntryView existing = entryWithGivenValue(null);
ReplicatedMapEntryView merging = entryWithGivenValue(MERGING);
assertEquals(MERGING, policy.merge("map", merging, existing));
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedMapEntryView in project hazelcast by hazelcast.
the class PutIfAbsentMapMergePolicyTest method merge_bothValuesNull.
@Test
public void merge_bothValuesNull() {
ReplicatedMapEntryView existing = entryWithGivenValue(null);
ReplicatedMapEntryView merging = entryWithGivenValue(null);
assertNull(policy.merge("map", merging, existing));
}
use of com.hazelcast.replicatedmap.impl.record.ReplicatedMapEntryView in project hazelcast by hazelcast.
the class PutIfAbsentMapMergePolicyTest method merge_existingValuePresent.
@Test
public void merge_existingValuePresent() {
ReplicatedMapEntryView existing = entryWithGivenValue(EXISTING);
ReplicatedMapEntryView merging = entryWithGivenValue(MERGING);
assertEquals(EXISTING, policy.merge("map", merging, existing));
}
Aggregations