mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Update Chronicle-Values dependency and add a test for #110
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user