use of net.openhft.chronicle.map.VanillaChronicleMap in project java by wavefrontHQ.
the class MapLoaderTest method testCorruptedFileFallsBackToInMemory.
// NOTE: Chronicle's repair attempt takes >1min for whatever reason.
@Ignore
@Test
public void testCorruptedFileFallsBackToInMemory() throws IOException {
FileOutputStream fos = new FileOutputStream(file);
fos.write("Nonsense".getBytes());
fos.flush();
ConcurrentMap<HistogramKey, AgentDigest> map = loader.get(file);
assertThat(((VanillaChronicleMap) map).file()).isNull();
testPutRemove(map);
}
Aggregations