Update Chronicle-Values dependency and add a test for #110

This commit is contained in:
leventov
2017-01-21 15:57:05 -06:00
parent 7c57d67266
commit 75b91a4142
2 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
<groupId>net.openhft</groupId>
<artifactId>chronicle-bom</artifactId>
<type>pom</type>
<version>1.13.44</version>
<version>1.13.47-SNAPSHOT</version>
<scope>import</scope>
</dependency>
@@ -0,0 +1,25 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.values.Array;
import net.openhft.chronicle.values.Values;
import org.junit.Test;
public class Issue110Test {
interface IContainer {
@Array(length=10)
double getDoubleArrayAt(int i);
void setDoubleArrayAt(int i, double d);
}
@Test
public void testChronicleDoubleArray() {
ChronicleMap<String, IContainer> map =
ChronicleMapBuilder.of(String.class, IContainer.class)
.entries(1024)
.averageKeySize(9)
.create();
map.put("0", Values.newHeapInstance(IContainer.class));
assert map.get("0") != null;
}
}