tomj        2002/12/06 07:45:27

  Modified:    java/test/functional TestJAXMSamples.java
  Log:
  Ignore HTTP errors from the UDDIPing test case.
  
  The IBM server seems to be down right now.
  
  Revision  Changes    Path
  1.18      +4 -5      xml-axis/java/test/functional/TestJAXMSamples.java
  
  Index: TestJAXMSamples.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/functional/TestJAXMSamples.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- TestJAXMSamples.java      3 Nov 2002 16:51:48 -0000       1.17
  +++ TestJAXMSamples.java      6 Dec 2002 15:45:27 -0000       1.18
  @@ -57,7 +57,6 @@
   
   import junit.framework.TestCase;
   import org.apache.axis.AxisFault;
  -import org.apache.axis.client.Call;
   import org.apache.axis.components.logger.LogFactory;
   import org.apache.commons.logging.Log;
   import samples.jaxm.DelayedStockQuote;
  @@ -68,9 +67,7 @@
   import javax.xml.soap.SOAPConnection;
   import javax.xml.soap.MessageFactory;
   import javax.xml.soap.SOAPMessage;
  -import javax.xml.soap.SOAPPart;
   import javax.xml.soap.SOAPEnvelope;
  -import javax.xml.soap.SOAPHeader;
   import javax.xml.soap.SOAPBody;
   import javax.xml.soap.Name;
   import javax.xml.soap.SOAPBodyElement;
  @@ -108,7 +105,9 @@
               if (t != null) {
                   t.printStackTrace();
                   if (t instanceof AxisFault) {
  -                    if (((AxisFault) t).detail instanceof SocketException) {
  +                    AxisFault af = (AxisFault) t;
  +                    if ((af.detail instanceof SocketException) ||
  +                        (af.getFaultCode().getLocalPart().equals("HTTP")) ) {
                           System.out.println("Connect failure caused JAXM UddiPing to 
be skipped.");
                           return;
                       }
  @@ -176,7 +175,7 @@
   
       public static void main(String args[]) throws Exception {
           TestJAXMSamples tester = new TestJAXMSamples("tester");
  -        tester.testJWSFault();
  +        tester.testUddiPing();
       } // main
   }
   
  
  
  


Reply via email to