lundi 18 mai 2015

Rolling Back after each test using J2EE with Jboss

I was using hibernate + Spring in my last project. It was very easy to setup persistence tests because using the following annotation in the top of the testing class, the changes in the database would be rolled back after each test.

@TransactionConfiguration(defaultRollback=true)

Now I am using J2EE with arquillian and Jboss application server. Is there a way to do it similarly?

Aucun commentaire:

Enregistrer un commentaire