Re: Rollback transactions in unit testing

2008-10-09 Thread David Blevins
On Sep 29, 2008, at 8:39 AM, Glauber Ferreira wrote: Hi all. I need to rollback transactions in order to revert all data modified (deleted, updated, created) by my tests. How can I do that in the test code listed in this link: http://openejb.apache.org/3.0/unit-testing-transactions.html

RE: Rollback transactions in unit testing

2008-10-02 Thread Marcin Kwapisz
Marcin, the strategy you suggest should also work and is especially good for prototyping or smaller projects. In our case where we have a huge application with (1.5 Mio LoC, 1000 EJBs, 100 database tables with complex relationships) we cannot drop (or empty) and create tables in junit

RE: Rollback transactions in unit testing

2008-09-30 Thread Marcin Kwapisz
[Marcin Kwapisz] I do not understand why you want to rollback committed transaction, especially in unit test. Even, I do not know how to do it in JEE application. Maybe our way will suit you: 1. set drop and create strategy in persistence.xml (property name depends on JPA provider, we have

RE: Rollback transactions in unit testing

2008-09-30 Thread Andreas Karalus
://www.nabble.com/Rollback-transactions-in-unit-testing-tp19724095p19749405.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Rollback transactions in unit testing

2008-09-29 Thread Glauber Ferreira
Hi all. I need to rollback transactions in order to revert all data modified (deleted, updated, created) by my tests. How can I do that in the test code listed in this link: http://openejb.apache.org/3.0/unit-testing-transactions.html Thanks in advance. -- Glauber Vinícius Ventura de Melo

Re: Rollback transactions in unit testing

2008-09-29 Thread Andreas Karalus
code listed in this link: http://openejb.apache.org/3.0/unit-testing-transactions.html Thanks in advance. -- Glauber Vinícius Ventura de Melo Ferreira PGP: 0x5AA19EF5 -- View this message in context: http://www.nabble.com/Rollback-transactions-in-unit-testing-tp19724095p19732849