[weld-dev] java-se weld unit test sample?

Aslak Knutsen aslak at conduct.no
Sun Dec 27 08:16:19 EST 2009


CDIRunner is build to support any CDI impl. You need to add dep to weld-impl
to run it using weld.

https://jira.jboss.org/jira/browse/WELDX-58

I just commited some code that change the injection done in TestCore to use
Non-Contextual-Injection. This should fix the issues your having.

https://jira.jboss.org/jira/browse/WELDX-63


-aslak-

2009/12/27 Johan Eltes <johan.eltes at callistaenterprise.se>

> To my previous post, it should be mentioned that the issues only relate to
> the TestCase class.
>
> /Johan
>
> On 26 dec 2009 v52, at 22.01, Aslak Knutsen wrote:
>
> Checkout the Weld Java SE project..
>
> JUnit 'example':
>
> http://anonsvn.jboss.org/repos/weld/java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/WeldMainTest.java
>
>
> src: http://anonsvn.jboss.org/repos/weld/java-se/trunk
>
> -aslak-
>
> 2009/12/26 Johan Eltes <johan.eltes at callistaenterprise.se>
>
>> Is there any working sample of how to set up a unit test for a weld bean?
>> I'm only looking for java-se weld support here, not ejb/jsf.
>>
>> /Johan
>> _______________________________________________
>> weld-dev mailing list
>> weld-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/weld-dev
>>
>
>
>
> --
> --
> Aslak Knutsen; +47 952 38 791; fax +47 22 33 60 24
> Kongens gate 14; Boks 805 Sentrum, 0104 Oslo;
> http://www.conduct.no; mailto:aslak at conduct.no
>
> Conduct AS - Professional Open Source Services
> - Red Hat/JBoss Premier System Integrator
> - Pentaho Preferred Integration Partner
> - Atlassian Technology Partner
>
>
>


-- 
--
Aslak Knutsen; +47 952 38 791; fax +47 22 33 60 24
Kongens gate 14; Boks 805 Sentrum, 0104 Oslo;
http://www.conduct.no; mailto:aslak at conduct.no

Conduct AS - Professional Open Source Services
- Red Hat/JBoss Premier System Integrator
- Pentaho Preferred Integration Partner
- Atlassian Technology Partner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091227/7f8b5069/attachment.html 


More information about the weld-dev mailing list