OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | jotm List | October 2006 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [jotm] Spring unit test with JOTM


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  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.