commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/test/org/apache/commons/latka TestStatusCodes.java
Date Fri, 05 Jul 2002 00:18:17 GMT
dion        2002/07/04 17:18:17

  Modified:    latka/src/test/org/apache/commons/latka TestStatusCodes.java
  Log:
  Allow offline running of tests
  
  Revision  Changes    Path
  1.6       +6 -0      jakarta-commons/latka/src/test/org/apache/commons/latka/TestStatusCodes.java
  
  Index: TestStatusCodes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/test/org/apache/commons/latka/TestStatusCodes.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestStatusCodes.java	11 Apr 2002 13:56:07 -0000	1.5
  +++ TestStatusCodes.java	5 Jul 2002 00:18:17 -0000	1.6
  @@ -65,6 +65,7 @@
   
   import java.io.IOException;
   import java.net.MalformedURLException;
  +import java.net.SocketException;
   import java.net.UnknownHostException;
   import java.net.URL;
   
  @@ -134,6 +135,11 @@
   
       try {
         request.execute();
  +    } catch (SocketException se) {
  +        if (se.getMessage().indexOf("unreachable") == -1) {
  +            fail("Network error: " + se.toString());
  +        }
  +        return;
       } catch (IOException e) {
         fail(e.toString());
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message