HCOLL-269 refactored DataValueConverter so that it now works with the DataValueModels.acquireModel()

This commit is contained in:
Rob Austin
2014-12-24 22:57:38 +00:00
parent f8f3967be6
commit e69ac9e96f
2 changed files with 84 additions and 115 deletions
@@ -159,7 +159,6 @@ public class ChronicleMapImportExportTest {
}
@Test
public void testFromHashMap() throws IOException, InterruptedException {
@@ -267,7 +266,7 @@ public class ChronicleMapImportExportTest {
public void testBondVOInterface() throws IOException, InterruptedException {
File file = new File(TMP + "/chronicle-map-" + System.nanoTime() + ".json");
// file.deleteOnExit();
file.deleteOnExit();
System.out.println(file.getAbsolutePath());
try (ChronicleMap<CharSequence, BondVOInterface> expected =
@@ -278,6 +277,10 @@ public class ChronicleMapImportExportTest {
// this will add the entry
try (WriteContext context = expected.acquireUsingLocked("one", value)) {
value.setCoupon(8.98);
BondVOInterface.MarketPx marketPxIntraDayHistoryAt = value.getMarketPxIntraDayHistoryAt(1);
marketPxIntraDayHistoryAt.setAskPx(12.0);
assert value == context.value();
}
@@ -292,7 +295,7 @@ public class ChronicleMapImportExportTest {
Assert.assertEquals(expected.get("one").getCoupon(), actual.get("one").getCoupon(), 0);
}
} finally {
// file.delete();
file.delete();
}
}
}