[webbeans-commits] Webbeans SVN: r2343 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone and 1 other directory.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Wed Apr 8 06:36:53 EDT 2009
Author: dallen6
Date: 2009-04-08 06:36:50 -0400 (Wed, 08 Apr 2009)
New Revision: 2343
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/event/DeferredEventNotification.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/RequestContextTest.java
Log:
Fixed request context problem with deferred events and enabled the tests.
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/event/DeferredEventNotification.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/event/DeferredEventNotification.java 2009-04-08 08:55:15 UTC (rev 2342)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/event/DeferredEventNotification.java 2009-04-08 10:36:50 UTC (rev 2343)
@@ -18,6 +18,7 @@
package org.jboss.webbeans.event;
import org.jboss.webbeans.context.DependentContext;
+import org.jboss.webbeans.context.RequestContext;
import org.jboss.webbeans.log.Log;
import org.jboss.webbeans.log.Logging;
@@ -49,6 +50,7 @@
public void run()
{
+ RequestContext.INSTANCE.setActive(true);
DependentContext.INSTANCE.setActive(true);
try
{
@@ -62,6 +64,7 @@
finally
{
DependentContext.INSTANCE.setActive(false);
+ RequestContext.INSTANCE.setActive(false);
}
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/RequestContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/RequestContextTest.java 2009-04-08 08:55:15 UTC (rev 2342)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/request/standalone/RequestContextTest.java 2009-04-08 10:36:50 UTC (rev 2343)
@@ -34,7 +34,7 @@
/**
* The request scope is active during any asynchronous observer method notification
*/
- @Test(groups = { "ri-broken", "contexts", "integration" })
+ @Test(groups = { "contexts", "integration" })
@SpecAssertion(section = "8.5.1", id = "f")
public void testRequestScopeIsActiveDuringAsynchronousObserverMethodInvocation() throws Exception
{
@@ -47,7 +47,7 @@
* The request context is destroyed after the asynchronous observer method notification
* completes
*/
- @Test(groups = { "ri-broken", "contexts", "integration" })
+ @Test(groups = { "contexts", "integration" })
@SpecAssertion(section = "8.5.1", id = "g")
public void testRequestScopeIsDestroyedAfterAsynchronousObserverMethodInvocation() throws Exception
{
More information about the weld-commits
mailing list