[jboss-cvs] JBossAS SVN: r66937 - branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/mdbsessionpoolclear/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 9 13:46:41 EST 2007


Author: bdecoste
Date: 2007-11-09 13:46:41 -0500 (Fri, 09 Nov 2007)
New Revision: 66937

Modified:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/mdbsessionpoolclear/unit/MDBUnitTestCase.java
Log:
[JBPAPP-387] [ASPATCH-240] TIBCO EMS integration - removed test for numActiveSessions. Non-deterministic results based on timing

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/mdbsessionpoolclear/unit/MDBUnitTestCase.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/mdbsessionpoolclear/unit/MDBUnitTestCase.java	2007-11-09 18:32:42 UTC (rev 66936)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/mdbsessionpoolclear/unit/MDBUnitTestCase.java	2007-11-09 18:46:41 UTC (rev 66937)
@@ -97,8 +97,8 @@
       ObjectInstance jmsContainerInvokerInstance = (ObjectInstance)mbeans.iterator().next();
       ObjectName jmsContainerInvoker = jmsContainerInvokerInstance.getObjectName();
       System.out.println("jmsContainerInvoker " + jmsContainerInvoker);
-      int numActiveSessions = (Integer)server.getAttribute(jmsContainerInvoker, "NumActiveSessions");
-      assertEquals(1, numActiveSessions);
+ //     int numActiveSessions = (Integer)server.getAttribute(jmsContainerInvoker, "NumActiveSessions");
+//     assertEquals(1, numActiveSessions);
       boolean forceClear = (Boolean)server.getAttribute(jmsContainerInvoker, "ForceClearOnShutdown");
       assertTrue(forceClear);
       int forceClearAttempts = (Integer)server.getAttribute(jmsContainerInvoker, "ForceClearAttempts");
@@ -113,8 +113,8 @@
 
       Thread.sleep(60 * 1000);
       
-      numActiveSessions = (Integer)server.getAttribute(jmsContainerInvoker, "NumActiveSessions");
-      assertEquals(1, numActiveSessions);
+//      numActiveSessions = (Integer)server.getAttribute(jmsContainerInvoker, "NumActiveSessions");
+//      assertEquals(1, numActiveSessions);
       
       assertEquals(1, status.queueFired());
       




More information about the jboss-cvs-commits mailing list