You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2004/08/17 05:41:29 UTC

cvs commit: ws-axis/java/test/wsdl/types/comprehensive_service TypeTestServiceTestCase.java

dims        2004/08/16 20:41:29

  Modified:    java/test/wsdl/types VerifyTestCase.java
               java/test/wsdl/types/comprehensive_service
                        TypeTestServiceTestCase.java
  Log:
  Patch for all-tests failure from Ian Springer.
  
  (AXIS-1514) wsdl/types test failures due to wrong types being passed to generated operations
  
  Revision  Changes    Path
  1.44      +3 -5      ws-axis/java/test/wsdl/types/VerifyTestCase.java
  
  Index: VerifyTestCase.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/test/wsdl/types/VerifyTestCase.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- VerifyTestCase.java	23 Feb 2004 14:17:43 -0000	1.43
  +++ VerifyTestCase.java	17 Aug 2004 03:41:29 -0000	1.44
  @@ -729,13 +729,11 @@
           }
           
           try {
  -            org.apache.axis.types.URI sendValue = new org.apache.axis.types.URI("urn:this-is-a-simple-test");
  -            org.apache.axis.holders.URIHolder ch = new org.apache.axis.holders.URIHolder(sendValue);
  -            org.apache.axis.types.URI actual = binding.methodSimpleAnyURI(sendValue, ch);
  +            test.wsdl.types.comprehensive_types2.SimpleAnyURIType sendValue = new test.wsdl.types.comprehensive_types2.SimpleAnyURIType("urn:this-is-a-simple-test");
  +            test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder ch = new test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder(sendValue);
  +            test.wsdl.types.comprehensive_types2.SimpleAnyURIType actual = binding.methodSimpleAnyURI(sendValue, ch);
           } catch (java.rmi.RemoteException re) {
               throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );
  -        } catch (MalformedURIException mue) {
  -            throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + mue );
           }
           
           try {
  
  
  
  1.4       +1 -2      ws-axis/java/test/wsdl/types/comprehensive_service/TypeTestServiceTestCase.java
  
  Index: TypeTestServiceTestCase.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/test/wsdl/types/comprehensive_service/TypeTestServiceTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TypeTestServiceTestCase.java	19 Dec 2003 09:06:57 -0000	1.3
  +++ TypeTestServiceTestCase.java	17 Aug 2004 03:41:29 -0000	1.4
  @@ -1540,8 +1540,7 @@
           binding.setTimeout(60000);
   
           // Test operation
  -        org.apache.axis.types.URI value = null;
  -        value = binding.methodSimpleAnyURI(new org.apache.axis.types.URI(), new org.apache.axis.holders.URIHolder(new org.apache.axis.types.URI()));
  +        test.wsdl.types.comprehensive_types2.SimpleAnyURIType actual = binding.methodSimpleAnyURI(new test.wsdl.types.comprehensive_types2.SimpleAnyURIType("urn:foo"), new test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder(new test.wsdl.types.comprehensive_types2.SimpleAnyURIType("urn:foo")));
           // TBD - validate results
       }