* but was good for event logging, which relied on objects existing, except
* when deleted. So test1 exercised two distinct but mutually exclusive bugs.
*/
public void test1() {
try {
UpdatableChronicle uc = db.getTopChronicle().edit().createChronicle("test", false, "testing...", null, null);
uc.applyUpdates();
String su1 = uc.getSurrogate().toString();
// access with "test" okay, because of non-strict mode
String su2 = db.getChronicle("test", true).getSurrogate().toString();
assertEquals(su1, su2);
uc.destroy();
uc.applyUpdates();
uc = db.getTopChronicle().edit().createChronicle("test", false, "testing...", null, null);
uc.applyUpdates();
// DON'T commit... old version of system removed things from cache on commit
String su3 = uc.getSurrogate().toString();
String su4 = db.getChronicle("test", true).getSurrogate().toString();
assertEquals(su3, su4);
db.commit();
} catch (Exception e) {
// e.printStackTrace();