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:
@@ -27,7 +27,6 @@ import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
import static java.util.concurrent.TimeUnit.SECONDS;
|
||||
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
@@ -61,8 +60,7 @@ public class ChannelReplicationTest {
|
||||
|
||||
map1a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderA.createChannel((short) 1))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderA.createChannel((short) 1)).create();
|
||||
}
|
||||
|
||||
{
|
||||
@@ -74,8 +72,7 @@ public class ChannelReplicationTest {
|
||||
|
||||
map1b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderB.createChannel((short) 1))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderB.createChannel((short) 1)).create();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,14 +94,12 @@ public class ChannelReplicationTest {
|
||||
|
||||
map2b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderB.createChannel((short) 2))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderB.createChannel((short) 2)).create();
|
||||
|
||||
|
||||
map2a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
.entries(1000)
|
||||
.channel(channelProviderA.createChannel((short) 2))
|
||||
.create(getPersistenceFile());
|
||||
.channel(channelProviderA.createChannel((short) 2)).create();
|
||||
|
||||
map2a.put(1, "EXAMPLE-2");
|
||||
map1a.put(1, "EXAMPLE-1");
|
||||
|
||||
Reference in New Issue
Block a user