2 Replies Latest reply on Jan 3, 2008 2:39 PM by Sheng Huang

    No transaction startted when running integration tests

    Magnus Sandberg Novice

      Using 1.0.1.GA I am trying to run Integration style test cases with Seam Managed Persistence. My problem is that nothing is written to the database; so I tried with a em.flush() but then I get a javax.persistence.TransactionRequiredException: no transaction is in progress.

      So it seams to me like no Transaction is started by Seam when the Script() is invoked or when the em is created ....

      Getting the EntityManager by hand and handling the Transations by hand in Entity/Unit tests work as expected so from that I guess that I have managed to configure the EntityManager(Factory) correctly.

      Any help appreciated.