You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/12/25 23:44:04 UTC

cvs commit: xml-axis/java/test/wsdl/literal SalesRankNPrice_ServiceTestCase.java

dims        2002/12/25 14:44:04

  Modified:    java/test/wsdl/literal SalesRankNPrice_ServiceTestCase.java
  Log:
  Ignore HTTP error from SalesRankNPrice
  
  Revision  Changes    Path
  1.8       +2 -1      xml-axis/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java
  
  Index: SalesRankNPrice_ServiceTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SalesRankNPrice_ServiceTestCase.java	11 Dec 2002 22:40:21 -0000	1.7
  +++ SalesRankNPrice_ServiceTestCase.java	25 Dec 2002 22:44:03 -0000	1.8
  @@ -145,7 +145,8 @@
               printit(binding.getAll(ISBN));
           } catch (java.rmi.RemoteException re) {
               if (!(re instanceof AxisFault &&
  -                  ((AxisFault) re).detail instanceof java.net.ConnectException)) {
  +                  ((((AxisFault) re).detail instanceof java.net.ConnectException)||
  +                   (((AxisFault) re).getFaultCode().getLocalPart().equals("HTTP"))))) {
                   throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
               } else {
                   // A connection exception has been detected so report this and make the test succeed.