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:
Rob Austin
2014-10-20 17:19:27 +01:00
parent 1b40eb8147
commit 8e57eeafc2
41 changed files with 193 additions and 193 deletions
@@ -77,8 +77,9 @@ public class TCPSocketReplicationTestPostConnection {
ChronicleMapBuilder<Integer, CharSequence> map2aBuilder =
newTcpSocketShmBuilder(Integer.class, CharSequence.class,
(byte) 2, 8077, new InetSocketAddress("localhost", 8076));
map2aBuilder.file(Builder.getPersistenceFile());
final ChronicleMap<Integer, CharSequence> map2a =
map2aBuilder.create(Builder.getPersistenceFile());
map2aBuilder.create();
map1 = TCPSocketReplication4WayMapTest.newTcpSocketShmIntString((byte) 1, 8076);
Thread.sleep(1);
@@ -91,7 +92,8 @@ public class TCPSocketReplicationTestPostConnection {
map1.put(6, "EXAMPLE-1");
// recreate map2 with new unique file
map2 = map2aBuilder.create(Builder.getPersistenceFile());
map2aBuilder.file(Builder.getPersistenceFile());
map2 = map2aBuilder.create();
// allow time for the recompilation to resolve