[jboss-cvs] JBossAS SVN: r106495 - branches/TEMP_ALR_JBAS-8146_ASYNC_EJB3_INTEGRATION/embedded/src/test/java/org/jboss/jbossas/embedded/testsuite.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 7 20:54:46 EDT 2010


Author: ALRubinger
Date: 2010-07-07 20:54:46 -0400 (Wed, 07 Jul 2010)
New Revision: 106495

Modified:
   branches/TEMP_ALR_JBAS-8146_ASYNC_EJB3_INTEGRATION/embedded/src/test/java/org/jboss/jbossas/embedded/testsuite/ServerIntegrationTest.java
Log:
[EJBTHREE-1721] Add an assertion failing the test if the async result is not intercepted

Modified: branches/TEMP_ALR_JBAS-8146_ASYNC_EJB3_INTEGRATION/embedded/src/test/java/org/jboss/jbossas/embedded/testsuite/ServerIntegrationTest.java
===================================================================
--- branches/TEMP_ALR_JBAS-8146_ASYNC_EJB3_INTEGRATION/embedded/src/test/java/org/jboss/jbossas/embedded/testsuite/ServerIntegrationTest.java	2010-07-07 23:47:24 UTC (rev 106494)
+++ branches/TEMP_ALR_JBAS-8146_ASYNC_EJB3_INTEGRATION/embedded/src/test/java/org/jboss/jbossas/embedded/testsuite/ServerIntegrationTest.java	2010-07-08 00:54:46 UTC (rev 106495)
@@ -34,6 +34,7 @@
 import java.util.concurrent.TimeoutException;
 import java.util.logging.Logger;
 
+import javax.ejb.AsyncResult;
 import javax.jms.Queue;
 import javax.jms.QueueConnection;
 import javax.jms.QueueConnectionFactory;
@@ -321,6 +322,8 @@
          log.info("Invocation value: " + value);
          Assert.assertTrue("First invocation did not report as completed", invocation.isDone());
          Assert.assertFalse("Invocation should not report as cancelled", invocation.isCancelled());
+         Assert.assertFalse("Invocation was not intercepted as async and was returned as normal",
+               invocation instanceof AsyncResult<?>);
       }
       finally
       {



More information about the jboss-cvs-commits mailing list