[webbeans-commits] Webbeans SVN: r2458 - ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/xml/deploy.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Fri Apr 17 06:54:49 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-04-17 06:54:49 -0400 (Fri, 17 Apr 2009)
New Revision: 2458

Modified:
   ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/xml/deploy/BeansXmlParserTest.java
Log:
minor

Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/xml/deploy/BeansXmlParserTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/xml/deploy/BeansXmlParserTest.java	2009-04-17 10:20:14 UTC (rev 2457)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/xml/deploy/BeansXmlParserTest.java	2009-04-17 10:54:49 UTC (rev 2458)
@@ -3,6 +3,7 @@
 import java.net.URL;
 import java.util.Iterator;
 
+import javax.inject.DefinitionException;
 import javax.inject.Production;
 import javax.inject.Standard;
 
@@ -11,9 +12,7 @@
 import org.jboss.testharness.impl.packaging.Resource;
 import org.jboss.testharness.impl.packaging.Resources;
 import org.jboss.webbeans.ejb.EjbDescriptorCache;
-import org.jboss.webbeans.mock.MockResourceLoader;
 import org.jboss.webbeans.mock.MockXmlEnvironment;
-import org.jboss.webbeans.resources.spi.ResourceLoader;
 import org.jboss.webbeans.test.AbstractWebBeansTest;
 import org.jboss.webbeans.xml.XmlEnvironment;
 import org.jboss.webbeans.xml.XmlParser;
@@ -67,7 +66,7 @@
    /**
     * Test case for WBRI-21.
     */
-   //@Test(expectedExceptions=DeploymentException.class, description="WBRI-21")
+   @Test(expectedExceptions=DefinitionException.class, description="WBRI-21")
    public void testDuplicateDeployElement()
    {
       Iterable<URL> urls = getResources("duplicate-deployments-beans.xml");




More information about the weld-commits mailing list