Package org.jboss.remoting

Examples of org.jboss.remoting.Client.removeConnectionListener()


      assertTrue(serverConnectionListener.throwable instanceof ClientDisconnectedException);
      assertTrue(clientConnectionListener.notified);
      assertTrue(clientConnectionListener.throwable instanceof Exception);
      assertEquals("Could not connect to server!", ((Exception)clientConnectionListener.throwable).getMessage());
     
      client.removeConnectionListener(clientConnectionListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here


      assertTrue(serverConnectionListener.throwable instanceof ClientDisconnectedException);
      assertTrue(clientConnectionListener.notified);
      assertTrue(clientConnectionListener.throwable instanceof Exception);
      assertEquals("Could not connect to server!", ((Exception)clientConnectionListener.throwable).getMessage());
     
      client.removeConnectionListener(clientConnectionListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      assertNull(serverConnectionListener.throwable);
      assertTrue(clientConnectionListener.notified);
      assertTrue(clientConnectionListener.throwable instanceof Exception);
      assertEquals("Could not connect to server!", ((Exception)clientConnectionListener.throwable).getMessage());
     
      client.removeConnectionListener(clientConnectionListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      assertEquals("Could not connect to server!", clientConnectionListener2b.throwable.getMessage());
     
      client1.removeConnectionListener(clientConnectionListener1a);
      client1.removeConnectionListener(clientConnectionListener1b);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2a);
      client2.removeConnectionListener(clientConnectionListener2b);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
View Full Code Here

     
      client1.removeConnectionListener(clientConnectionListener1a);
      client1.removeConnectionListener(clientConnectionListener1b);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2a);
      client2.removeConnectionListener(clientConnectionListener2b);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

     
      // Verfiy LeasePinger has stopped.
      timerTask = (TimerTask) field.get(pinger);
      assertNull(timerTask);
     
      client.removeConnectionListener(clientListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

     
      // Verfiy LeasePinger has not stopped.
      timerTask = (TimerTask) field.get(pinger);
      assertNotNull(timerTask);
     
      client.removeConnectionListener(clientListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

         {
            log.info("callback 2 failed");
            throw new Exception("callback 2 failed");
         }
         log.info("callback successful");
         client.removeConnectionListener(listener);
         log.info("calling removeListener(): 1");
         client.removeListener(callbackHandler1);
         log.info("calling removeListener(): 2");
         client.removeListener(callbackHandler2);
         log.info("calling disconnect()");
View Full Code Here

     
      // Verfiy LeasePinger has not stopped.
      timerTask = (TimerTask) field.get(pinger);
      assertNotNull(timerTask);
     
      client.removeConnectionListener(clientListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      field = LeasePinger.class.getDeclaredField("timerTask");
      field.setAccessible(true);
      timerTask = (TimerTask) field.get(pinger);
      assertNull(timerTask);
     
      client.removeConnectionListener(clientListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.