Re: AW: Interceptors not being called in JUnit-aware CDI environment

2014-02-07 Thread Romain Manni-Bucau
t;> > pubic static class DbHelper { >> > private @Inject EntityManager em; >> >@Transactional >> >public void cleanupDb() { >> > em. >> > } >> > } >> > >> > @Before >> > public void doCl

Re: AW: Interceptors not being called in JUnit-aware CDI environment

2014-02-07 Thread Gerhard Petracek
gt; throws Throwable > { > try > { > defaultStatement.evaluate(); > } > finally > { > creationalContext.release(); > } > } > >

AW: AW: Interceptors not being called in JUnit-aware CDI environment

2014-02-07 Thread it-media . kopp
: Freitag, 7. Februar 2014 09:29 > An: dev@deltaspike.apache.org > Betreff: Re: AW: Interceptors not being called in JUnit-aware CDI environment > > = > == > > ATTENTION! This message contains suspicious URL(s) possibly

Re: AW: Interceptors not being called in JUnit-aware CDI environment

2014-02-07 Thread Mark Struberg
;> -Ursprüngliche Nachricht- >> Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] >> Gesendet: Freitag, 7. Februar 2014 08:55 >> An: dev@deltaspike.apache.org >> Betreff: Re: Interceptors not being called in JUnit-aware CDI environment >> >> =

AW: Interceptors not being called in JUnit-aware CDI environment

2014-02-07 Thread it-media . kopp
Manni-Bucau [mailto:rmannibu...@gmail.com] > Gesendet: Freitag, 7. Februar 2014 08:55 > An: dev@deltaspike.apache.org > Betreff: Re: Interceptors not being called in JUnit-aware CDI environment > > = > == > > ATTENTION! Thi

Re: Interceptors not being called in JUnit-aware CDI environment

2014-02-06 Thread Romain Manni-Bucau
gt;> -Ursprüngliche Nachricht- >> Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] >> Gesendet: Freitag, 7. Februar 2014 08:26 >> An: dev@deltaspike.apache.org >> Betreff: Re: Interceptors not being called in JUnit-aware CDI environment >> >>

AW: Interceptors not being called in JUnit-aware CDI environment

2014-02-06 Thread it-media . kopp
Manni-Bucau [mailto:rmannibu...@gmail.com] > Gesendet: Freitag, 7. Februar 2014 08:26 > An: dev@deltaspike.apache.org > Betreff: Re: Interceptors not being called in JUnit-aware CDI environment > > = > == > > ATTENTIO

Re: Interceptors not being called in JUnit-aware CDI environment

2014-02-06 Thread Romain Manni-Bucau
HI You want to intercept the test? so it means the runner needs to invoke "business" methods of the test class which is not the case by default (ie result shouldn't be built from a newInstance() but from a beanManager.getXXX()). Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wor

Interceptors not being called in JUnit-aware CDI environment

2014-02-06 Thread it-media . kopp
Hello, I've been trying to start the CDI container during Junit-Testing as described at the following page, http://struberg.wordpress.com/2012/03/27/unit-testing-strategies-for-cdi-based-projects/ though I'm using Junit 4 and implemented everything using a new Runner (to annotate tests with @R