Mail Archive Home | jotm List | October 2006 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi,
public void testGetTransaction() throws SystemException { Transaction transaction = transactionManager.getTransaction(); assertNotNull(transaction); } }
The transactionManager seem to be setup ok since it is not null, but the second test actually get a transaction always fails with transaction being null.
I would try this:
transactionManager.begin(); Transaction tx = transactionManager.getTransaction(); assert tx != null;
Simon -- http://bordet.blogspot.com
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.