mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases.
This commit is contained in:
@@ -26,7 +26,6 @@ import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
|
||||
import static net.openhft.chronicle.map.Builder.newTcpSocketShmBuilder;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
@@ -48,7 +47,7 @@ public class TCPSocketReplication4WayMapTest {
|
||||
final int serverPort,
|
||||
final InetSocketAddress... endpoints) throws IOException {
|
||||
return (T) newTcpSocketShmBuilder(Integer.class, CharSequence.class,
|
||||
identifier, serverPort, endpoints).create(getPersistenceFile());
|
||||
identifier, serverPort, endpoints).create();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,8 +59,7 @@ public class TCPSocketReplication4WayMapTest {
|
||||
return newTcpSocketShmBuilder(IntValue.class, CharSequence.class,
|
||||
identifier, serverPort, endpoints)
|
||||
.entries(20000L)
|
||||
.keyMarshaller(ByteableIntValueMarshaller.INSTANCE)
|
||||
.create(getPersistenceFile());
|
||||
.keyMarshaller(ByteableIntValueMarshaller.INSTANCE).create();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user