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 to...@apache.org on 2002/10/03 16:51:50 UTC

cvs commit: xml-axis/java/test/wsdl/faults FaultServiceTestCase.java FaultService.wsdl

tomj        2002/10/03 07:51:50

  Modified:    java/test/wsdl/faults Tag: interop4
                        FaultServiceTestCase.java FaultService.wsdl
  Log:
  Fault data for simple types now works!
  Turn on the test (and fix bad WSDL).
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.8.1   +5 -7      xml-axis/java/test/wsdl/faults/FaultServiceTestCase.java
  
  Index: FaultServiceTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/faults/FaultServiceTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.4.8.1
  diff -u -r1.4 -r1.4.8.1
  --- FaultServiceTestCase.java	14 May 2002 23:46:34 -0000	1.4
  +++ FaultServiceTestCase.java	3 Oct 2002 14:51:50 -0000	1.4.8.1
  @@ -40,9 +40,8 @@
               fail("Should raise an InvalidTickerFault"); 
           } 
           catch (InvalidTickerFaultMessage tickerFault) {
  -            // We don't support fault data yet!
  -            //assertEquals("Ticker Symbol in Fault doesn't match original argument", 
  -            //        symbol, tickerFault.getTickerSymbol());
  +            assertEquals("Ticker Symbol in Fault doesn't match original argument", 
  +                    symbol, tickerFault.getTickerSymbol());
           }
           catch (org.apache.axis.AxisFault e) {
               throw new junit.framework.
  @@ -77,13 +76,12 @@
           // that it throws a DerivedFault, but we know the impl actually
           // throws DerivedFault2 which extends DerivedFault)
           catch (DerivedFault2 e) {
  -            // We don't support fault data yet!
               //assertEquals("Param A in DerivedFault2 doesn't match original", 
  -            //        a, tickerFault.getA());
  +            //        a, e.getA());
               //assertEquals("Param B in DerivedFault2 doesn't match original", 
  -            //        b, tickerFault.getB());
  +            //        b, e.getB());
               //assertEquals("Param C in DerivedFault2 doesn't match original", 
  -            //        c, tickerFault.getC());
  +            //        c, e.getC(), 0.01F);
           }
           catch (DerivedFault e) {
               throw new junit.framework.
  
  
  
  1.2.8.1   +2 -2      xml-axis/java/test/wsdl/faults/FaultService.wsdl
  
  Index: FaultService.wsdl
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/faults/FaultService.wsdl,v
  retrieving revision 1.2
  retrieving revision 1.2.8.1
  diff -u -r1.2 -r1.2.8.1
  --- FaultService.wsdl	14 May 2002 23:46:34 -0000	1.2
  +++ FaultService.wsdl	3 Oct 2002 14:51:50 -0000	1.2.8.1
  @@ -82,7 +82,7 @@
         <output>
           <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace=""/>
         </output>
  -      <fault>
  +      <fault name="InvalidTickerFaultMessage">
           <soap:fault name="InvalidTickerFaultMessage" use="encoded"/>
         </fault>
       </operation>
  @@ -94,7 +94,7 @@
         <output>
           <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace=""/>
         </output>
  -      <fault>
  +      <fault name="throwFaultFault">
           <soap:fault name="throwFaultFault" use="encoded"/>
         </fault>
       </operation>