You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by dl...@apache.org on 2002/10/10 02:22:44 UTC

cvs commit: xml-rpc/src/test/org/apache/xmlrpc ClientServerRpcTest.java

dlr         2002/10/09 17:22:44

  Modified:    src/test/org/apache/xmlrpc ClientServerRpcTest.java
  Log:
  Updated test case for recent changes to the WebServer class.
  
  Revision  Changes    Path
  1.12      +6 -3      xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java
  
  Index: ClientServerRpcTest.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -u -r1.11 -r1.12
  --- ClientServerRpcTest.java	15 Aug 2002 20:39:26 -0000	1.11
  +++ ClientServerRpcTest.java	10 Oct 2002 00:22:44 -0000	1.12
  @@ -150,6 +150,8 @@
           InetAddress localhost = null;
           try
           {
  +            // localhost will be a random network interface on a
  +            // multi-homed host.
               localhost = InetAddress.getLocalHost();
           }
           catch (UnknownHostException e)
  @@ -157,8 +159,9 @@
               fail(e.toString());
           }
   
  -        // WebServer (contains its own XmlRpcServer instance)
  -        webServer = new WebServer(SERVER_PORT, localhost);
  +        // WebServer (contains its own XmlRpcServer instance, binds to
  +        // INADDR_ANY)
  +        webServer = new WebServer(SERVER_PORT);
           webServer.addHandler(HANDLER_NAME, new TestHandler());
   
           // XML-RPC client(s)