public TestEJBTransactionalClass(String name) {
super(name, "kernelcactusapp");
}
public void testTransactional() {
TransactionalClassPC pc = new TransactionalClassPC();
pc.setIntField(1);
EntityManager pm = currentEntityManager();
startTx(pm);
//pm.makeTransactional (pc);
pc.setIntField(2);
endTx(pm);
assertEquals(2, pc.getIntField());
startTx(pm);
pc.setIntField(3);
pm.getTransaction().rollback();
assertEquals(3, pc.getIntField());
endEm(pm);
}