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 embedded 1.5.1 and Arquillian
Date Sat, 26 Jan 2013 19:51:49 GMT
That's because you need to contribute the bean manager to use. It can be
done wrting a small arquillian extension with a custom observer to do it.
That said using the snapshot would be easier.
Le 25 janv. 2013 21:00, "Bertrand Guay-Paquet" <bernie@step.polymtl.ca> a
écrit :

> Hi,
>
> Thanks for your answer. I tried adding the following to my pom.xml and it
> didn't change anything:
>
>         <dependency>
> <artifactId>arquillian-**testenricher-cdi</artifactId>
> <groupId>org.jboss.arquillian.**testenricher</groupId>
>             <scope>test</scope>
>         </dependency>
>
> is there something else to do for the workaround? I'm new to Arquillian
> and having trouble finding information regarding the test enrichers...
>
> Bertrand
>
> On 22/01/2013 1:45 PM, Romain Manni-Bucau wrote:
>
>> Hi,
>>
>> https://issues.apache.org/**jira/browse/TOMEE-747<https://issues.apache.org/jira/browse/TOMEE-747>should
fix it
>>
>> a workaround can be to import cdi test enricher from arquillian
>>
>> *Romain Manni-Bucau*
>> *Twitter: @rmannibucau <https://twitter.com/**rmannibucau<https://twitter.com/rmannibucau>
>> >*
>> *Blog: **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>> <http://**rmannibucau.wordpress.com/ <http://rmannibucau.wordpress.com/>>
>> *LinkedIn: **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>> *Github: https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>
>>
>>
>> 2013/1/22 Bertrand Guay-Paquet <bernie@step.polymtl.ca>
>>
>>  Hello,
>>>
>>> I'm trying to use TomEE embedded for tests with Arquillian but the simple
>>> example from the "Getting Started" guide fails. It seems that injection
>>> is
>>> not being performed in the test when using TomEE 1.5.1. It works fine
>>> with
>>> TomEE 1.0.0 and 1.5.0.
>>>
>>> I get:
>>> java.lang.NullPointerException
>>>      at greeter.GreeterTest.test1(****GreeterTest.java:32)
>>>      [...]
>>> which is where a method call is performed on the injected object.
>>>
>>> Here is the (working, TomEE 1.5.0) test app:
>>> https://github.com/berniegp/****test-arquillian-tomee<https://github.com/berniegp/**test-arquillian-tomee>
>>> <https://**github.com/berniegp/test-**arquillian-tomee<https://github.com/berniegp/test-arquillian-tomee>
>>> >
>>>
>>> Did I miss a step somewhere or is this a bug?
>>>
>>> Regards,
>>> Bertrand
>>>
>>>
>

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