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
S
> 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
rks
> Technical Univeristy of Lodz, Poland
>
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/Rollback-transactions-in-unit-testing-tp19724095p19749405.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
[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 sep
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 Ferreira
> PGP: 0x5AA19EF5
>
>
--
View this message in context:
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 Ferr