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

Ron Sigal ron_sigal at yahoo.com
Sat Jun 2 03:03:21 EDT 2007


  User: rsigal  
  Date: 07/06/02 03:03:21

  Modified:    src/tests/org/jboss/test/remoting/binding  Tag: remoting_2_x
                        BindingTestCase.java
  Log:
  JBREM-687:  Replaced Sting.contains() with jdk 1.4 compatible code.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +4 -4      JBossRemoting/src/tests/org/jboss/test/remoting/binding/BindingTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BindingTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/binding/BindingTestCase.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- BindingTestCase.java	23 May 2007 04:59:36 -0000	1.1.2.2
  +++ BindingTestCase.java	2 Jun 2007 07:03:21 -0000	1.1.2.3
  @@ -68,7 +68,7 @@
         String connectorLocatorUrl = connector.getInvokerLocator();
         System.out.println("connector locator = " + connectorLocatorUrl);
         String hostName = InetAddress.getLocalHost().getHostName();
  -      assertTrue(connectorLocatorUrl.contains(hostName));
  +      assertFalse(-1 == connectorLocatorUrl.indexOf(hostName));
   
         // Verify that the ServerSocket is bound to address 0.0.0.0.
         ServerInvoker si = connector.getServerInvoker();
  @@ -108,7 +108,7 @@
         String connectorLocatorUrl = connector.getInvokerLocator();
         System.out.println("connector locator = " + connectorLocatorUrl);
         String hostName = InetAddress.getLocalHost().getHostAddress();
  -      assertTrue(connectorLocatorUrl.contains(hostName));
  +      assertFalse(-1 == connectorLocatorUrl.indexOf(hostName));
   
         // Verify that the ServerSocket is bound to address 0.0.0.0.
         ServerInvoker si = connector.getServerInvoker();
  @@ -169,7 +169,7 @@
         String connectorLocatorUrl = connector.getInvokerLocator();
         System.out.println("connector locator = " + connectorLocatorUrl);
         String hostName = InetAddress.getLocalHost().getHostName();
  -      assertTrue(connectorLocatorUrl.contains(hostName));
  +      assertFalse(-1 == connectorLocatorUrl.indexOf(hostName));
   
         // Verify that the ServerSocket is bound to address 0.0.0.0.
         ServerInvoker si = connector.getServerInvoker();
  @@ -230,7 +230,7 @@
         String connectorLocatorUrl = connector.getInvokerLocator();
         System.out.println("connector locator = " + connectorLocatorUrl);
         String hostName = InetAddress.getLocalHost().getHostAddress();
  -      assertTrue(connectorLocatorUrl.contains(hostName));
  +      assertFalse(-1 == connectorLocatorUrl.indexOf(hostName));
   
         // Verify that the ServerSocket is bound to address 0.0.0.0.
         ServerInvoker si = connector.getServerInvoker();
  
  
  



More information about the jboss-cvs-commits mailing list