pm.close();
}
public void testBasicType(long longval) {
logger.log(BasicLevel.DEBUG, "testBasicType" + longval);
BasicType bt = new BasicType();
bt.assign(longval);
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
pm.makePersistent(bt);
Object oid = pm.getObjectId(bt);
pm.currentTransaction().commit();
bt = null;
pmf.getDataStoreCache().evictAll();
pm.currentTransaction().begin();
bt = (BasicType) pm.getObjectById(oid, false);
Assert.assertNotNull("bt is null", bt);
bt.check(longval);
pm.deletePersistent(bt);
pm.currentTransaction().commit();
pm.close();
}