Package org.jboss.test.jmx.invoker

Examples of org.jboss.test.jmx.invoker.Listener


    * @throws Exception
    */
   public void testNotification() throws Exception
   {
      log.info("+++ testNotification");
      Listener listener = new Listener(10);
      server.addNotificationListener(getObjectName(), listener, new RunTimerFilter(), "runTimer");
      server.invoke(getObjectName(), "startTimer", null, null);
      synchronized( listener )
      {
         listener.wait(15000);
      }
      server.removeNotificationListener(getObjectName(), listener);
      int count = listener.getCount();
      assertTrue("Received 10 notifications, count="+count, count == 10);
   }
View Full Code Here


    * @throws Exception
    */
   public void testNotification() throws Exception
   {
      log.info("+++ testNotification");
      Listener listener = new Listener(10);
      server.addNotificationListener(getObjectName(), listener, new RunTimerFilter(), "runTimer");
      server.invoke(getObjectName(), "startTimer", null, null);
      synchronized( listener )
      {
         listener.wait(15000);
      }
      server.removeNotificationListener(getObjectName(), listener);
      int count = listener.getCount();
      assertTrue("Received 10 notifications, count="+count, count == 10);
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.jmx.invoker.Listener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.