CDIRunner is build to support any CDI impl. You need to add dep to weld-impl to run it using weld.<div><br></div><div><a href="https://jira.jboss.org/jira/browse/WELDX-58">https://jira.jboss.org/jira/browse/WELDX-58</a></div>
<div><br></div><div>I just commited some code that change the injection done in TestCore to use Non-Contextual-Injection. This should fix the issues your having.</div><div><br></div><div><a href="https://jira.jboss.org/jira/browse/WELDX-63">https://jira.jboss.org/jira/browse/WELDX-63</a></div>
<div><br></div><div><br></div><div>-aslak-<br><br><div class="gmail_quote">2009/12/27 Johan Eltes <span dir="ltr">&lt;<a href="mailto:johan.eltes@callistaenterprise.se">johan.eltes@callistaenterprise.se</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">To my previous post, it should be mentioned that the issues only relate to the TestCase class.<div>
<br></div><div>/Johan</div><div><br><div><div class="im"><div>On 26 dec 2009 v52, at 22.01, Aslak Knutsen wrote:</div><br></div><div><div></div><div class="h5"><blockquote type="cite">Checkout the Weld Java SE project.. <div>
<br></div><div>JUnit &#39;example&#39;:</div><div><a href="http://anonsvn.jboss.org/repos/weld/java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/WeldMainTest.java" target="_blank">http://anonsvn.jboss.org/repos/weld/java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/WeldMainTest.java</a></div>

<div><br></div><div><br></div><div>src: <a href="http://anonsvn.jboss.org/repos/weld/java-se/trunk" target="_blank">http://anonsvn.jboss.org/repos/weld/java-se/trunk</a></div><div><br></div><div>-aslak-<br><br><div class="gmail_quote">
2009/12/26 Johan Eltes <span dir="ltr">&lt;<a href="mailto:johan.eltes@callistaenterprise.se" target="_blank">johan.eltes@callistaenterprise.se</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any working sample of how to set up a unit test for a weld bean? I&#39;m only looking for java-se weld support here, not ejb/jsf.<br>


<br>
/Johan<br>
_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>--<br>Aslak Knutsen; +47 952 38 791; fax +47 22 33 60 24<br>Kongens gate 14; Boks 805 Sentrum, 0104 Oslo;<br><a href="http://www.conduct.no/" target="_blank">http://www.conduct.no</a>; mailto:<a href="mailto:aslak@conduct.no" target="_blank">aslak@conduct.no</a><br>

<br>Conduct AS - Professional Open Source Services<br>- Red Hat/JBoss Premier System Integrator<br>- Pentaho Preferred Integration Partner<br>- Atlassian Technology Partner<br>
</div>
</blockquote></div></div></div><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>Aslak Knutsen; +47 952 38 791; fax +47 22 33 60 24<br>Kongens gate 14; Boks 805 Sentrum, 0104 Oslo;<br><a href="http://www.conduct.no">http://www.conduct.no</a>; mailto:<a href="mailto:aslak@conduct.no">aslak@conduct.no</a><br>
<br>Conduct AS - Professional Open Source Services<br>- Red Hat/JBoss Premier System Integrator<br>- Pentaho Preferred Integration Partner<br>- Atlassian Technology Partner<br>
</div>