Author: scabanovich
Date: 2011-03-16 17:47:52 -0400 (Wed, 16 Mar 2011)
New Revision: 29830
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/lib/some-weld.jar
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java
Log:
JBIDE-8578
https://issues.jboss.org/browse/JBIDE-8578
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath 2011-03-16
21:37:53 UTC (rev 29829)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/.classpath 2011-03-16
21:47:52 UTC (rev 29830)
@@ -8,5 +8,6 @@
<classpathentry kind="lib" path="lib/weld-core.jar"/>
<classpathentry kind="lib" path="lib/weld-se.jar"/>
<classpathentry kind="lib" path="lib/weld-servlet.jar"/>
+ <classpathentry kind="lib" path="lib/some-weld.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/lib/some-weld.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/projects/CDITest1/lib/some-weld.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java 2011-03-16
21:37:53 UTC (rev 29829)
+++
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/WeldJarTest.java 2011-03-16
21:47:52 UTC (rev 29830)
@@ -52,6 +52,10 @@
p = ps.iterator().next();
inbs = cdi.getBeans(false, p);
assertFalse(inbs.isEmpty());
+
+ //Find bean defined in some-weld.jar
+ bs = cdi.getBeans("beanInWeldJar", false);
+ assertEquals(1, bs.size());
}
public void tearDown() throws Exception {