pm.close();
pmf.close();
}
public void testWritesWithoutDatastoreTxn() throws Exception {
PersistenceManagerFactory pmf = getPersistenceManagerFactory(
JDOTestCase.PersistenceManagerFactoryName.transactional.name());
PersistenceManager pm = pmf.getPersistenceManager();
testWritePermutationWithoutExpectedDatastoreTxn(pm, NO_EXPLICIT_DEMARCATION, NON_TXN_OP_ALLOWED);
pm.close();
pmf.close();
pmf = getPersistenceManagerFactory(
JDOTestCase.PersistenceManagerFactoryName.nontransactional.name());
pm = pmf.getPersistenceManager();
testWritePermutationWithoutExpectedDatastoreTxn(pm, EXPLICIT_DEMARCATION, NON_TXN_OP_ALLOWED);
testWritePermutationWithoutExpectedDatastoreTxn(pm, EXPLICIT_DEMARCATION, NON_TXN_OP_NOT_ALLOWED);
testWritePermutationWithoutExpectedDatastoreTxn(pm, NO_EXPLICIT_DEMARCATION, NON_TXN_OP_ALLOWED);
pm.close();
pmf.close();
}