use of com.hazelcast.cache.CacheEntryView in project hazelcast by hazelcast.
the class PassThroughCacheMergePolicyTest method merge_mergingNotNull.
@Test
public void merge_mergingNotNull() {
CacheEntryView existing = entryWithGivenValue(EXISTING);
CacheEntryView merging = entryWithGivenValue(MERGING);
assertEquals(MERGING, policy.merge("cache", merging, existing));
}
use of com.hazelcast.cache.CacheEntryView in project hazelcast by hazelcast.
the class PassThroughCacheMergePolicyTest method merge_mergingNull.
@Test
public void merge_mergingNull() {
CacheEntryView existing = entryWithGivenValue(EXISTING);
CacheEntryView merging = null;
assertEquals(EXISTING, policy.merge("cache", merging, existing));
}
use of com.hazelcast.cache.CacheEntryView in project hazelcast by hazelcast.
the class PutIfAbsentCacheMergePolicyTest method merge_existingValueAbsent.
@Test
public void merge_existingValueAbsent() {
CacheEntryView existing = null;
CacheEntryView merging = entryWithGivenValue(MERGING);
assertEquals(MERGING, policy.merge("map", merging, existing));
}
use of com.hazelcast.cache.CacheEntryView in project hazelcast by hazelcast.
the class PutIfAbsentCacheMergePolicyTest method merge_existingValuePresent.
@Test
public void merge_existingValuePresent() {
CacheEntryView existing = entryWithGivenValue(EXISTING);
CacheEntryView merging = entryWithGivenValue(MERGING);
assertEquals(EXISTING, policy.merge("map", merging, existing));
}
use of com.hazelcast.cache.CacheEntryView in project hazelcast by hazelcast.
the class PutIfAbsentCacheMergePolicyTest method merge_bothValuesNull.
@Test
public void merge_bothValuesNull() {
CacheEntryView existing = entryWithGivenValue(null);
CacheEntryView merging = entryWithGivenValue(null);
assertNull(policy.merge("map", merging, existing));
}
Aggregations