Make ChronicleMapBuilder.entries() config obligatory for in-memory Maps and persistence-creating Maps

This commit is contained in:
leventov
2015-11-24 23:50:41 +03:00
parent d5fe21a290
commit 582560ed15
21 changed files with 133 additions and 82 deletions
@@ -44,9 +44,8 @@ public class BuildVersionTest {
@Test
public void testVersion() throws IOException, InterruptedException {
try (ChronicleMap<Integer, Double> expected = ChronicleMapBuilder.of(Integer.class, Double
.class)
.create()) {
try (ChronicleMap<Integer, Double> expected = ChronicleMap.of(Integer.class, Double.class)
.entries(1).create()) {
expected.put(1, 1.0);
String version = ((VanillaChronicleMap) expected).persistedDataVersion();