String key = String.valueOf(i1);
final String value = String.valueOf(randomFactor*i1);
String cached = (String)testData.getOrUse(
key,
new Supplier<IdentityCacheableWrapper>(
new IdentityCacheableWrapper(key, value))).get();
assertSame("unexpected prior entry",value,cached);
}
Checkpoint checkpointInProgress = new Checkpoint();
ConfigPath checkpointsPath = new ConfigPath("checkpoints","checkpoints");
checkpointsPath.setBase(basePath);
checkpointInProgress.generateFrom(checkpointsPath,998);
bdb.doCheckpoint(checkpointInProgress);
String firstCheckpointName = checkpointInProgress.getName();
for (int i2 = 1000; i2 < 2000; i2++) {
String key = String.valueOf(i2);
final String value = String.valueOf(randomFactor*i2);
String cached = (String)testData.getOrUse(
key,
new Supplier<IdentityCacheableWrapper>(
new IdentityCacheableWrapper(key, value))).get();
assertSame("unexpected prior entry",value,cached);
}
checkpointInProgress = new Checkpoint();
checkpointInProgress.generateFrom(checkpointsPath,999);