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 Tue, 22 Jan 2013 18:45:07 GMT
Hi,

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>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: 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>
>
> Did I miss a step somewhere or is this a bug?
>
> Regards,
> Bertrand
>

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