butek       02/02/22 10:51:50

  Modified:    java/test/wsdl Wsdl2javaTestSuite.xml
               java/test/wsdl/interop3 Import2TestCase.java
  Log:
  Added interop round 3 absolute import2 test.
  
  Revision  Changes    Path
  1.78      +40 -0     xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml
  
  Index: Wsdl2javaTestSuite.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- Wsdl2javaTestSuite.xml    21 Feb 2002 18:51:23 -0000      1.77
  +++ Wsdl2javaTestSuite.xml    22 Feb 2002 18:51:50 -0000      1.78
  @@ -502,6 +502,46 @@
       <!-- Step 8:  see test/wsdl/interop3/Import2TestCase.java -->
   
   
  +    <!-- SOAP Builder's round III web services       -->
  +    <!-- interoperability testing:  absolute import2 -->
  +
  +    <!-- Steps 1, 2 and 4: -->
  +    <wsdl2java url="http://www.dolphinharbor.org/services/R3Import2/service.wsdl";
  +               output="build/work"
  +               skeleton="yes">
  +        <mapping namespace="http://soapinterop.org/main/"; 
package="test.wsdl.interop3.absimport2"/>
  +        <mapping namespace="http://soapinterop.org/definitions/"; 
package="test.wsdl.interop3.absimport2.definitions"/>
  +        <mapping namespace="http://soapinterop.org/xsd"; 
package="test.wsdl.interop3.absimport2.xsd"/>
  +    </wsdl2java>
  +    <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="on">
  +      <classpath refid="test-classpath" />
  +      <include name="test/wsdl/interop3/absimport2/*.java" />
  +    </javac>
  +
  +    <!-- Step 3:  see test/wsdl/interop3/Import2TestCase.java -->
  +    <!-- Step 5:  see test/wsdl/interop3/Import2TestCase.java -->
  +
  +    <!-- Step 6:  -->
  +    <java2wsdl output="build/work/test/wsdl/interop3/absimport2.wsdl"
  +               className= 
"test.wsdl.interop3.absimport2.definitions.SoapInteropImport2PortType"
  +               namespace="http://soapinterop.org/definitions/";
  +           location="http://localhost:8080/axis/services/SoapInteropImport2Port";>
  +        <mapping namespace="http://soapinterop.org/main/"; 
package="test.wsdl.interop3.absimport2"/>
  +        <mapping namespace="http://soapinterop.org/definitions/"; 
package="test.wsdl.interop3.absimport2.definitions"/>
  +        <mapping namespace="http://soapinterop.org/xsd"; 
package="test.wsdl.interop3.absimport2.xsd"/>
  +    </java2wsdl>
  +    <wsdl2java url="build/work/test/wsdl/interop3/absimport2.wsdl"
  +               output="build/work"
  +               skeleton="yes">
  +        <mapping namespace="http://soapinterop.org/main/"; 
package="test.wsdl.interop3.absimport2.step6"/>
  +        <mapping namespace="http://soapinterop.org/definitions/"; 
package="test.wsdl.interop3.absimport2.step6.definitions"/>
  +        <mapping namespace="http://soapinterop.org/xsd"; 
package="test.wsdl.interop3.absimport2.step6.xsd"/>
  +    </wsdl2java>
  +
  +    <!-- Step 7:  see test/wsdl/interop3/Import2TestCase.java -->
  +    <!-- Step 8:  see test/wsdl/interop3/Import2TestCase.java -->
  +
  +
       <!-- SOAP Builder's round III web services -->
       <!-- interoperability testing:  import3    -->
   
  
  
  
  1.2       +78 -0     xml-axis/java/test/wsdl/interop3/Import2TestCase.java
  
  Index: Import2TestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/interop3/Import2TestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Import2TestCase.java      18 Feb 2002 21:25:43 -0000      1.1
  +++ Import2TestCase.java      22 Feb 2002 18:51:50 -0000      1.2
  @@ -110,6 +110,84 @@
       }
   */
   
  +    public void testAbsoluteStep3() {
  +        test.wsdl.interop3.absimport2.definitions.SoapInteropImport2PortType 
binding;
  +        try {
  +            binding = new 
test.wsdl.interop3.absimport2.Import2Locator().getSoapInteropImport2Port();
  +        }
  +        catch (javax.xml.rpc.ServiceException jre) {
  +            throw new junit.framework.AssertionFailedError("JAX-RPC 
ServiceException caught: " + jre);
  +        }
  +        assertTrue("binding is null", binding != null);
  +
  +        try {
  +            test.wsdl.interop3.absimport2.xsd.SOAPStruct value = null;
  +            value = binding.echoStruct(new 
test.wsdl.interop3.absimport2.xsd.SOAPStruct());
  +        }
  +        catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception 
caught: " + re);
  +        }
  +    }
  +
  +    public void testAbsoluteStep5() {
  +        test.wsdl.interop3.absimport2.definitions.SoapInteropImport2PortType 
binding;
  +        try {
  +            binding = new 
test.wsdl.interop3.absimport2.Import2Locator().getSoapInteropImport2Port(new 
java.net.URL("http://localhost:8080/axis/services/SoapInteropImport2Port";));
  +        }
  +        catch (Throwable t) {
  +            throw new junit.framework.AssertionFailedError("Throwable caught: " + 
t);
  +        }
  +        assertTrue("binding is null", binding != null);
  +
  +        try {
  +            test.wsdl.interop3.absimport2.xsd.SOAPStruct value = null;
  +            value = binding.echoStruct(new 
test.wsdl.interop3.absimport2.xsd.SOAPStruct());
  +        }
  +        catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception 
caught: " + re);
  +        }
  +    }
  +
  +    public void testAbsoluteStep7() {
  +        test.wsdl.interop3.absimport2.step6.definitions.SoapInteropImport2PortType 
binding;
  +        try {
  +            binding = new 
test.wsdl.interop3.absimport2.step6.definitions.SoapInteropImport2PortTypeServiceLocator().getSoapInteropImport2Port();
  +        }
  +        catch (javax.xml.rpc.ServiceException jre) {
  +            throw new junit.framework.AssertionFailedError("JAX-RPC 
ServiceException caught: " + jre);
  +        }
  +        assertTrue("binding is null", binding != null);
  +
  +        try {
  +            test.wsdl.interop3.absimport2.step6.xsd.SOAPStruct value = null;
  +            value = binding.echoStruct(new 
test.wsdl.interop3.absimport2.step6.xsd.SOAPStruct());
  +        }
  +        catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception 
caught: " + re);
  +        }
  +    }
  +
  +/* doesn't work yet
  +    public void testAbsoluteStep8() {
  +        SoapInteropImport2PortType binding;
  +        try {
  +            binding = new 
SoapInteropImport2PortTypeServiceLocator().getSoapInteropImport2Port(new 
java.net.URL("http://mssoapinterop.org/stkV3/wsdl/import2.wsdl";));
  +        }
  +        catch (Throwable t) {
  +            throw new junit.framework.AssertionFailedError("Throwable caught: " + 
t);
  +        }
  +        assertTrue("binding is null", binding != null);
  +
  +        try {
  +            SOAPStruct value = null;
  +            value = binding.echoStruct(new SOAPStruct());
  +        }
  +        catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception 
caught: " + re);
  +        }
  +    }
  +*/
  +
       public static void main(String[] args) {
           junit.textui.TestRunner.run(new 
junit.framework.TestSuite(Import2TestCase.class));
       } // main
  
  
  


Reply via email to