t;> > pubic static class DbHelper {
>> > private @Inject EntityManager em;
>> >@Transactional
>> >public void cleanupDb() {
>> > em.
>> > }
>> > }
>> >
>> > @Before
>> > public void doCl
gt; throws Throwable
> {
> try
> {
> defaultStatement.evaluate();
> }
> finally
> {
> creationalContext.release();
> }
> }
>
>
: 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
;> -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
>>
>> =
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
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
>>
>>
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
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
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