This content has been marked as final.
Show 2 replies
-
1. Re: Expecting a RollbackException in a Persistence test?
bmajsak Apr 22, 2013 3:06 PM (in response to xiumeteo)You can always use programmatic transaction demarcation. Simply @Inject UserTransaction and turn off APE-provided by using @Transactional(NONE).
However I don't personally see a lot of value in such a test case, because what you are effectively testing is if ORM/DB code works with transactions and guarantees data consistency, which is not really your application responsibility anyway (that's what container provides).
-
2. Re: Expecting a RollbackException in a Persistence test?
xiumeteo Apr 23, 2013 3:39 PM (in response to bmajsak)Thnks! a lot! Bartosz...the Alpha6 seems like its better than Alpha5 jaja!...and whatever in i can help with APE it will be wonderful, especially in summer!!