4 Replies Latest reply on May 21, 2015 7:09 AM by emilyj

    Async call - RequestScoped not active exception

    emilyj

      I am trying to run cts with async tests. But I hit

      When running CTS the test: org.jboss.cdi.tck.tests.context.request.event.async.RequestScopeEventAsyncTest

      Methods: testEventsFired

       

      The following exception is thrown: (See testng-results.xml for the full exception stack)

      java.lang.AssertionError: expected [true] but found [false]

          at org.testng.Assert.fail(Assert.java:94)

          at org.testng.Assert.failNotEquals(Assert.java:494)

          at org.testng.Assert.assertEquals(Assert.java:123)

          at org.testng.Assert.assertEquals(Assert.java:176)

          at org.testng.Assert.assertEquals(Assert.java:186)

          at org.jboss.cdi.tck.tests.context.request.event.async.RequestScopeEventAsyncTest.checkContent(RequestScopeEventAsyncTest.java:78)

          at org.jboss.cdi.tck.tests.context.request.event.async.RequestScopeEventAsyncTest.testEventsFired(RequestScopeEventAsyncTest.java:69)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at

      When running CTS the test: org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest

      Methods: testRequestContextActiveOnComplete and testRequestContextActiveOnError

       

      The following exception is thrown: (See testng-results.xml for the full exception stack)

      java.lang.AssertionError: expected [true] but found [false]

          at org.testng.Assert.fail(Assert.java:94)

          at org.testng.Assert.failNotEquals(Assert.java:494)

          at org.testng.Assert.assertTrue(Assert.java:42)

          at org.testng.Assert.assertTrue(Assert.java:52)

          at org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest.testRequestContextActiveOnError(RequestContextAsyncListenerTest.java:93)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)

          at java.lang.reflect.Method.invoke(Method.java:620)

          at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)

          at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:182)

      ...

       

      Do I need to do anything for integration to support the async? Any help is much appreciated!