HCOLL-152 - udpated the java version to 1.7 and added a random file name to -> File file = new File(TMP + "/chm-myBondPortfolioCHM-" + System.nanoTime());

This commit is contained in:
Rob Austin
2014-10-04 15:16:14 +01:00
parent e6b1a41f75
commit 255af2987e
@@ -21,7 +21,6 @@ import net.openhft.chronicle.map.ChronicleMap;
import net.openhft.chronicle.map.ChronicleMapBuilder;
import net.openhft.lang.io.serialization.impl.NewInstanceObjectFactory;
import net.openhft.lang.model.DataValueClasses;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
@@ -51,7 +50,6 @@ public class OpenJDKAndHashMapExamplesTest {
}
@Test
@Ignore
public void bondExample() throws IOException, InterruptedException {
Class<BondVOInterface> bondVODirectClass = directClassFor(BondVOInterface.class);
@@ -85,7 +83,7 @@ public class OpenJDKAndHashMapExamplesTest {
.of(String.class, bondVODirectClass)
.valueFactory(bondVODirectObjectFactory)
.entrySize(320)
.create(new File(TMP + "/chm-myBondPortfolioCHM"));
.create(file);
// ZERO Copy but creates a new off heap reference each time