mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed several replication bugs; Value -> Data; extracted ReplicableEntry as a superclass of HashReplicableEntry
This commit is contained in:
@@ -26,7 +26,7 @@ import com.google.common.collect.testing.features.CollectionSize;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
import net.openhft.chronicle.hash.Value;
|
||||
import net.openhft.chronicle.hash.Data;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Assert;
|
||||
|
||||
@@ -141,7 +141,7 @@ public class GuavaTest extends TestCase {
|
||||
|
||||
@Override
|
||||
public Void replaceValue(@NotNull MapEntry<CharSequence, CharSequence> entry,
|
||||
Value<CharSequence, ?> newValue) {
|
||||
net.openhft.chronicle.hash.Data<CharSequence, ?> newValue) {
|
||||
Assert.assertEquals(m, entry.context().map());
|
||||
m.put(entry.key().get().toString(), newValue.get().toString());
|
||||
return MapEntryOperations.super.replaceValue(entry, newValue);
|
||||
@@ -149,7 +149,7 @@ public class GuavaTest extends TestCase {
|
||||
|
||||
@Override
|
||||
public Void insert(@NotNull MapAbsentEntry<CharSequence, CharSequence> absentEntry,
|
||||
Value<CharSequence, ?> value) {
|
||||
Data<CharSequence, ?> value) {
|
||||
Assert.assertEquals(m, absentEntry.context().map());
|
||||
m.put(absentEntry.absentKey().get().toString(), value.get().toString());
|
||||
return MapEntryOperations.super.insert(absentEntry, value);
|
||||
|
||||
Reference in New Issue
Block a user