tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: tomee 1.6.0-SNAPSHOT, ejb example failing to inject @persistencecontext
Date Thu, 05 Sep 2013 21:28:44 GMT
Hi

no, you need to specify it using arquillian @Transactional(ROLLBACK) either
on the class or methods.

Note: it only works in server side tests, not in client side ones

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/9/5 jieryn <jieryn@gmail.com>

> Greetings,
>
> On Fri, Aug 23, 2013 at 3:16 AM, Romain Manni-Bucau
> <rmannibucau@gmail.com> wrote:
> > btw removing selenium your test passes for me
>
> Getting back into this.. I see that I had allowed surefire to ignore
> test failures. When I remove that maven plugin setting, the build
> fails.
>
> https://github.com/jieryn/javaee-example
> https://travis-ci.org/jieryn/javaee-example
>
> It seems that transactions are not rolled back for each @Test. I am
> coming from a SpringFramework test environment where each @Test had
> transaction isolation, so that one test wouldn't interfere with
> others. How can I get this behavior, I would have thought it to be the
> default..
>
> Thanks!
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message