allow Byteable instances that have maxSize() determined at runtime

This commit is contained in:
epickrram
2017-07-10 10:27:40 +01:00
parent bd54a98c42
commit ef3e0bbe69
6 changed files with 236 additions and 9 deletions
@@ -67,7 +67,6 @@ public class DoubleArrayTest {
}
@Test
@Ignore("TODO What is HACK???")
public void addToAMap() {
DoubleArray a = new DoubleArray(10);
a.setData(new double[]{1, 2, 3, 4, 5});
@@ -77,6 +76,7 @@ public class DoubleArrayTest {
ChronicleMap<Integer, DoubleArray> proxyMap = ChronicleMap
.of(Integer.class, DoubleArray.class)
.constantValueSizeBySample(a)
.entries(2)
.create();
proxyMap.put(1, a);