Package org.jboss.test.messaging.tools.container

Examples of org.jboss.test.messaging.tools.container.LocalTestServer.start()


      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "-10");
     
      try
      {
         server.start("all", overrides, false, true);
         fail("Should have thrown an exception when setting ServerPeerID to a negative value");
      }
      catch (RuntimeMBeanException rmbe)
      {
         assertTrue(rmbe.getCause() instanceof IllegalArgumentException);
View Full Code Here


      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "-10");
     
      try
      {
         server.start("all", overrides, false, true);
         fail("Should have thrown an exception when setting ServerPeerID to a negative value");
      }
      catch (RuntimeMBeanException rmbe)
      {
         assertTrue(rmbe.getCause() instanceof IllegalArgumentException);
View Full Code Here

      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "65535");
     
      try
      {
         server.start("all", overrides, false, true);
      }
      catch (RuntimeMBeanException rmbe)
      {
         fail("Large ServerPeerID should be allowed (0 - 65535)");
      }
View Full Code Here

      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "-10");
     
      try
      {
         server.start("all", overrides, false, true);
         fail("Should have thrown an exception when setting ServerPeerID to a negative value");
      }
      catch (RuntimeMBeanException rmbe)
      {
         assertTrue(rmbe.getCause() instanceof IllegalArgumentException);
View Full Code Here

      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "1023");
     
      try
      {
         server.start("all", overrides, false, true);
      }
      catch (RuntimeMBeanException rmbe)
      {
         fail("Largest ServerPeerID should be allowed (0 - 1023)");
      }
View Full Code Here

      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "1024");
     
      try
      {
         server.start("all", overrides, false, true);
         fail("Largest ServerPeerID should be less than 1024");
      }
      catch (RuntimeMBeanException rmbe)
      {
         //ignore
View Full Code Here

   {
      LocalTestServer server = new LocalTestServer();
     
      try
      {
         server.start("all", null, false, true);
         ServerPeer sp = server.getServerPeer();
         int interval = sp.getSuckerConnectionRetryInterval();
         assertEquals(5000, interval);
         int maxRetry = sp.getSuckerConnectionRetryTimes();
         assertEquals(-1, maxRetry);
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.