mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
reverted cff7c5bea8
This commit is contained in:
@@ -34,6 +34,7 @@ import java.util.Random;
|
||||
|
||||
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
|
||||
import static net.openhft.chronicle.map.Builder.newTcpSocketShmBuilder;
|
||||
import static net.openhft.chronicle.map.TCPSocketReplication4WayMapTest.newTcpSocketShmIntValueString;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -56,14 +57,9 @@ public class TCPSocketReplicationIntValueTest {
|
||||
((Byteable) value).bytes(new ByteBufferBytes(ByteBuffer.allocateDirect(4)), 0);
|
||||
map1Builder = newTcpSocketShmBuilder(IntValue.class, CharSequence.class,
|
||||
(byte) 1, 8076, new InetSocketAddress("localhost", 8077));
|
||||
map1Builder.keyMarshaller(ByteableIntValueMarshaller.INSTANCE);
|
||||
map1 = map1Builder.keyMarshaller(ByteableIntValueMarshaller.INSTANCE)
|
||||
.createPersistedTo(getPersistenceFile());
|
||||
map2 = newTcpSocketShmBuilder(IntValue.class, CharSequence.class,
|
||||
(byte) 2, 8077)
|
||||
.entries(20000L)
|
||||
.keyMarshaller(ByteableIntValueMarshaller.INSTANCE)
|
||||
.create();
|
||||
map1Builder.keyMarshaller(ByteableIntValueMarshaller.INSTANCE).file(getPersistenceFile());
|
||||
map1 = map1Builder.keyMarshaller(ByteableIntValueMarshaller.INSTANCE).create();
|
||||
map2 = newTcpSocketShmIntValueString((byte) 2, 8077);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user