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
@@ -31,8 +31,8 @@ public class BooleanValuesTest {
*/
@Test
public void testTestBooleanValues() throws IOException, InterruptedException {
try (ChronicleMap<Integer, Boolean> map =
ChronicleMapBuilder.of(Integer.class, Boolean.class).create()) {
try (ChronicleMap<Integer, Boolean> map = ChronicleMap.of(Integer.class, Boolean.class)
.entries(1).create()) {
map.put(7, true);
Assert.assertEquals(true, map.get(7));
}