[webbeans-commits] Webbeans SVN: r1725 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context and 1 other directory.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Thu Feb 26 15:24:18 EST 2009
Author: pete.muir at jboss.org
Date: 2009-02-26 15:24:18 -0500 (Thu, 26 Feb 2009)
New Revision: 1725
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java
Log:
WBTCK-20
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-26 20:13:57 UTC (rev 1724)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-26 20:24:18 UTC (rev 1725)
@@ -537,7 +537,7 @@
}
if (activeContexts.size() > 1)
{
- throw new IllegalArgumentException("More than one context active for scope type " + scopeType.getName());
+ throw new IllegalStateException("More than one context active for scope type " + scopeType.getName());
}
return activeContexts.iterator().next();
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java 2009-02-26 20:13:57 UTC (rev 1724)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/ContextTest.java 2009-02-26 20:24:18 UTC (rev 1725)
@@ -63,7 +63,7 @@
getCurrentManager().getContext(RequestScoped.class);
}
- @Test(expectedExceptions = { IllegalArgumentException.class }, groups = { "manager" })
+ @Test(expectedExceptions = { IllegalStateException.class }, groups = { "manager" })
@SpecAssertion(section = "8.6", id = "d")
public void testGetContextWithTooManyActiveContextsFails()
{
More information about the weld-commits
mailing list