mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
#145 added a test for handling a recycled array of AbstractBytesMarshallable
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.openhft.lang.values;
|
||||
|
||||
import net.openhft.chronicle.core.OS;
|
||||
import net.openhft.chronicle.core.pool.ClassAliasPool;
|
||||
import net.openhft.chronicle.map.ChronicleMap;
|
||||
import net.openhft.chronicle.map.ChronicleMapBuilder;
|
||||
@@ -13,13 +14,11 @@ import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class ArrayTest {
|
||||
|
||||
static String TMP = System.getProperty("java.io.tmpdir");
|
||||
|
||||
@Test
|
||||
public void test0() throws IOException {
|
||||
ClassAliasPool.CLASS_ALIASES.addAlias(MovingAverageArray.class);
|
||||
|
||||
File file = new File(TMP + "/pf-PosistionsAndClose-" + System.nanoTime());
|
||||
File file = new File(OS.getTarget() + "/pf-PosistionsAndClose-" + System.nanoTime());
|
||||
|
||||
ChronicleMap<Long, MovingAverageArray> mapWrite = ChronicleMap
|
||||
.of(Long.class, MovingAverageArray.class)
|
||||
|
||||
Reference in New Issue
Block a user