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:
@@ -37,8 +37,7 @@ public class DefaultValueTest {
|
||||
defaultValue.add(42);
|
||||
try (ChronicleMap<String, List<Integer>> map = ChronicleMapBuilder
|
||||
.of(String.class, (Class<List<Integer>>) ((Class) List.class))
|
||||
.defaultValue(defaultValue)
|
||||
.create(file)) {
|
||||
.defaultValue(defaultValue).file(file).create()) {
|
||||
|
||||
assertEquals(defaultValue, map.get("a"));
|
||||
assertEquals(1, map.size());
|
||||
@@ -48,7 +47,8 @@ public class DefaultValueTest {
|
||||
}
|
||||
|
||||
try (ChronicleMap<String, List<Integer>> map = ChronicleMapBuilder
|
||||
.of(String.class, (Class<List<Integer>>) ((Class) List.class)).create(file)) {
|
||||
.of(String.class, (Class<List<Integer>>) ((Class) List.class)).file(file).
|
||||
create()) {
|
||||
assertEquals(defaultValue, map.get("c"));
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user