[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/detection/jndi ...

Tom Elrod tom.elrod at jboss.com
Mon Jul 31 13:31:46 EDT 2006


  User: telrod  
  Date: 06/07/31 13:31:46

  Modified:    src/tests/org/jboss/test/remoting/detection/jndi  
                        Client.java Server.java
  Log:
  JBREM-218 - jndi test using port 1001, which causing problems on cruisecontrol since is unix env where that port is reserved for root.
  
  Revision  Changes    Path
  1.3       +3 -4      JBossRemoting/src/tests/org/jboss/test/remoting/detection/jndi/Client.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Client.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/detection/jndi/Client.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- Client.java	30 May 2006 21:12:03 -0000	1.2
  +++ Client.java	31 Jul 2006 17:31:46 -0000	1.3
  @@ -21,6 +21,7 @@
   */
   package org.jboss.test.remoting.detection.jndi;
   
  +import junit.framework.TestCase;
   import org.apache.log4j.Level;
   import org.apache.log4j.Logger;
   import org.jboss.remoting.InvokerLocator;
  @@ -41,8 +42,6 @@
   import java.util.HashMap;
   import java.util.Map;
   
  -import junit.framework.TestCase;
  -
   /**
    * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
    * @author Michael Voss
  @@ -168,7 +167,7 @@
                  try
                  {
                     //for this test make sure it's not a client
  -                  if (networkNotification.getLocator()[x].getPort() == 1001)
  +                  if (networkNotification.getLocator()[x].getPort() == 3001)
                     {
                        System.out.println("-+-Discovered server '" + locators[x].getLocatorURI() + "'-+-");
                        init(locators[x]);
  @@ -191,7 +190,7 @@
                  try
                  {
                     //for this test make sure it's not a client
  -                  if (networkNotification.getLocator()[x].getPort() == 1001)
  +                  if (networkNotification.getLocator()[x].getPort() == 3001)
                     {
                        System.out.println("-!-Server '" + locators[x].getLocatorURI() + "' has gone-!-");
                        detectionFailureCount++;
  
  
  
  1.2       +2 -2      JBossRemoting/src/tests/org/jboss/test/remoting/detection/jndi/Server.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Server.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/detection/jndi/Server.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- Server.java	27 Apr 2006 17:51:57 -0000	1.1
  +++ Server.java	31 Jul 2006 17:31:46 -0000	1.2
  @@ -23,6 +23,7 @@
   
   import org.apache.log4j.Level;
   import org.apache.log4j.Logger;
  +import org.jboss.jrunit.extensions.ServerTestCase;
   import org.jboss.remoting.InvocationRequest;
   import org.jboss.remoting.InvokerLocator;
   import org.jboss.remoting.ServerInvocationHandler;
  @@ -30,7 +31,6 @@
   import org.jboss.remoting.callback.InvokerCallbackHandler;
   import org.jboss.remoting.detection.jndi.JNDIDetector;
   import org.jboss.remoting.transport.Connector;
  -import org.jboss.jrunit.extensions.ServerTestCase;
   
   import javax.management.MBeanServer;
   import javax.management.MBeanServerFactory;
  @@ -51,7 +51,7 @@
   
      private String jndiAddress = null;
      private int jndiPort = 2410;
  -   private String port = "1001";
  +   private String port = "3001";
   
   
      private void init()
  
  
  



More information about the jboss-cvs-commits mailing list