Make value and value size configuration obligatory in ChronicleMapBuilder

This commit is contained in:
leventov
2015-10-14 17:47:22 +03:00
parent 7d35346022
commit a13bf449d0
32 changed files with 172 additions and 81 deletions
@@ -38,8 +38,9 @@ public class TcpReplicationWithAcquireContextTest {
ChronicleMap<CharSequence, TestInstrumentVOInterface> map2a = null;
ChronicleMap<CharSequence, TestInstrumentVOInterface> map1a = null;
try (ChronicleMap<CharSequence, TestInstrumentVOInterface> map1 = ChronicleMapBuilder.of
(CharSequence.class, TestInstrumentVOInterface.class)
try (ChronicleMap<CharSequence, TestInstrumentVOInterface> map1 = ChronicleMap
.of(CharSequence.class, TestInstrumentVOInterface.class)
.averageKey("hello")
.replication((byte) 1, config1)
.create()) {
@@ -50,8 +51,8 @@ public class TcpReplicationWithAcquireContextTest {
try (ChronicleMap<CharSequence, TestInstrumentVOInterface> map2 =
ChronicleMapBuilder.of(CharSequence.class,
TestInstrumentVOInterface.class)
ChronicleMap.of(CharSequence.class, TestInstrumentVOInterface.class)
.averageKey("hello")
.replication((byte) 2, config2)
.create()) {