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@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':



-aslak-

2009/12/26 Johan Eltes <johan.eltes@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@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@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@conduct.no

Conduct AS - Professional Open Source Services
- Red Hat/JBoss Premier System Integrator
- Pentaho Preferred Integration Partner
- Atlassian Technology Partner