<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hej.<div><br></div><div>It isn't enough to have a dependency to&nbsp;org.jboss.weld.test:weld-test-junit:jar:1.0.0-SNAPSHOT:test to use&nbsp;<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">CDIRunner with junit4. This dependency is also required:&nbsp;org.jboss.weld.test:weld-test-weld:jar:1.0.0-SNAPSHOT:test</span></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;">If this is the intention, then I think the pom ofv<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">weld-test-junit should have a runtime-dependency to&nbsp;<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">weld-test-weld, so that clients only need to declare a test dependency to&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">weld-test-junit?</span></span></span></span></font></div><div><br></div><div>/Johan</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font><div><div>On 26 dec 2009 v52, at 22.01, Aslak Knutsen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Checkout the Weld Java SE project..&nbsp;<div><br></div><div>JUnit 'example':</div><div><a href="http://anonsvn.jboss.org/repos/weld/java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/WeldMainTest.java">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:&nbsp;<a href="http://anonsvn.jboss.org/repos/weld/java-se/trunk">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">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'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">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/">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>
</blockquote></div><br></div></body></html>