[jboss-cvs] JBossAS SVN: r75770 - trunk/testsuite/src/main/org/jboss/test/jmx/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 14 08:23:33 EDT 2008


Author: adrian at jboss.org
Date: 2008-07-14 08:23:33 -0400 (Mon, 14 Jul 2008)
New Revision: 75770

Modified:
   trunk/testsuite/src/main/org/jboss/test/jmx/test/JMXConnectorUnitTestCase.java
Log:
[JBAS-5691] - Remove the BadListener from the connector tests which isn't a JBoss test

Modified: trunk/testsuite/src/main/org/jboss/test/jmx/test/JMXConnectorUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jmx/test/JMXConnectorUnitTestCase.java	2008-07-14 12:21:21 UTC (rev 75769)
+++ trunk/testsuite/src/main/org/jboss/test/jmx/test/JMXConnectorUnitTestCase.java	2008-07-14 12:23:33 UTC (rev 75770)
@@ -185,43 +185,4 @@
       int count = listener.getCount();
       assertTrue("Received 10 notifications, count="+count, count == 10);
    }
-
-   /** Test the remoting of JMX Notifications with a valid listener
-    * and a bad listener that attempts to hang the service by sleeping
-    * in the notification callback.
-    *
-    * @throws Exception
-    */
-   public void testNotificationWithBadListener() throws Exception
-   {
-      log.info("+++ testNotificationWithBadListener");
-      // Add a bad listener
-      BadListener badListener = new BadListener();
-      server.addNotificationListener(getObjectName(), badListener, null, "BadListener");
-      Listener listener = new Listener(10);
-      // Add a good listener
-      server.addNotificationListener(getObjectName(), listener, new RunTimerFilter(), "runTimer");
-      server.invoke(getObjectName(), "startTimer", null, null);
-      // Wait 25 seconds for the good listener events to complete
-      synchronized( listener )
-      {
-         listener.wait(25000);
-      }
-      server.removeNotificationListener(getObjectName(), listener);
-      int count = listener.getCount();
-      assertTrue("Received 10 notifications from Listener, count="+count,
-         count == 10);
-      count = badListener.getCount();
-      assertTrue("Received >= 1 notifications from BadListener, count="+count,
-         count >= 1);
-      try
-      {
-         server.removeNotificationListener(getObjectName(), badListener);
-      }
-      catch(ListenerNotFoundException e)
-      {
-         log.debug("The BadListener was not found", e);
-      }
-   }
-
 }




More information about the jboss-cvs-commits mailing list