gdaniels    02/02/27 07:50:58

  Added:       java/test/wsdl/interop3/emptysa EmptySATestCase.java
               java/test/wsdl/interop3/import1 Import1TestCase.java
               java/test/wsdl/interop3/import2 Import2TestCase.java
               java/test/wsdl/interop3/import3 Import3TestCase.java
  Log:
  Add test cases to test dirs
  
  Revision  Changes    Path
  1.1                  xml-axis/java/test/wsdl/interop3/emptysa/EmptySATestCase.java
  
  Index: EmptySATestCase.java
  ===================================================================
  package test.wsdl.interop3.emptysa;
  
  import test.wsdl.interop3.emptysa.step6.EmptySALocator;
  
  /*
      <!-- SOAP Builder's round III web services          -->
      <!-- interoperability testing:  import1             -->
      <!-- (see http://www.whitemesa.net/r3/plan.html)    -->
      <!-- Step 1.  Start with predefined WSDL            -->
      <!-- Step 2.  Generate client from predefined WSDL  -->
      <!-- Step 3.  Test generated client against         -->
      <!--          pre-built server                      -->
      <!-- Step 4.  Generate server from predefined WSDL  -->
      <!-- Step 5.  Test generated client against         -->
      <!--          generated server                      -->
      <!-- Step 6.  Generate second client from           -->
      <!--          generated server's WSDL (some clients -->
      <!--          can do this dynamically)              -->
      <!-- Step 7.  Test second generated client against  -->
      <!--          generated server                      -->
      <!-- Step 8.  Test second generated client against  -->
      <!--          pre-built server                      -->
  */
  
  public class EmptySATestCase extends junit.framework.TestCase {
      public EmptySATestCase(String name) {
          super(name);
      }
  
      public void testStep3() {
          SoapInteropEmptySAPortType binding;
          try {
              binding = new EmptySALocator().getSoapInteropEmptySAPort();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException 
caught: " + jre);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              String value = "Empty SA Echo Test step 3";
              assertEquals("EmptySA step 3 returned something weird!", value, 
binding.echoString(value));
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep5() {
          SoapInteropEmptySAPortType binding;
          try {
              binding = new EmptySALocator().getSoapInteropEmptySAPort(new 
java.net.URL("http://localhost:8080/axis/services/EmptySA";));
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              String value = "Empty SA Echo Test step 5";
              assertEquals("EmptySA step 5 returned something weird!", value, 
binding.echoString(value));
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep7() {
          test.wsdl.interop3.emptysa.step6.SoapInteropEmptySAPortType binding;
          try {
              binding = new 
test.wsdl.interop3.emptysa.step6.EmptySALocator().getSoapInteropEmptySAPort();
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              String value = null;
              value = binding.echoString(new String());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
  /* doesn't work yet
      public void testStep8() {
         test.wsdl.interop3.import1.step6.definitions.SoapInteropImport1PortType 
binding;
          try {
              binding = new 
SoapInteropImport1PortTypeServiceLocator().getSoapInteropImport1Port(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 {
              java.lang.String value = null;
              value = binding.echoString(new java.lang.String());
          }
          catch (java.rmi.RemoteException re) {
              re.printStackTrace();
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  */
  
      public static void main(String[] args) {
          junit.textui.TestRunner.run(new 
junit.framework.TestSuite(EmptySATestCase.class));
      } // main
  
  }
  
  
  
  
  1.1                  xml-axis/java/test/wsdl/interop3/import1/Import1TestCase.java
  
  Index: Import1TestCase.java
  ===================================================================
  package test.wsdl.interop3.import1;
  
  import test.wsdl.interop3.import1.definitions.SoapInteropImport1PortType;
  import 
test.wsdl.interop3.import1.step6.definitions.SoapInteropImport1PortTypeServiceLocator;
  /*
      <!-- SOAP Builder's round III web services          -->
      <!-- interoperability testing:  import1             -->
      <!-- (see http://www.whitemesa.net/r3/plan.html)    -->
      <!-- Step 1.  Start with predefined WSDL            -->
      <!-- Step 2.  Generate client from predefined WSDL  -->
      <!-- Step 3.  Test generated client against         -->
      <!--          pre-built server                      -->
      <!-- Step 4.  Generate server from predefined WSDL  -->
      <!-- Step 5.  Test generated client against         -->
      <!--          generated server                      -->
      <!-- Step 6.  Generate second client from           -->
      <!--          generated server's WSDL (some clients -->
      <!--          can do this dynamically)              -->
      <!-- Step 7.  Test second generated client against  -->
      <!--          generated server                      -->
      <!-- Step 8.  Test second generated client against  -->
      <!--          pre-built server                      -->
  */
  
  public class Import1TestCase extends junit.framework.TestCase {
      public Import1TestCase(String name) {
          super(name);
      }
  
      public void testStep3() {
          SoapInteropImport1PortType binding;
          try {
              binding = new Import1Locator().getSoapInteropImport1Port();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException 
caught: " + jre);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              String value = null;
              value = binding.echoString(new String());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep5() {
          SoapInteropImport1PortType binding;
          try {
              binding = new Import1Locator().getSoapInteropImport1Port(new 
java.net.URL("http://localhost:8080/axis/services/SoapInteropImport1Port";));
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              String value = null;
              value = binding.echoString(new String());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep7() {
          test.wsdl.interop3.import1.step6.definitions.SoapInteropImport1PortType 
binding;
          try {
              binding = new 
SoapInteropImport1PortTypeServiceLocator().getSoapInteropImport1Port();
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              String value = null;
              value = binding.echoString(new String());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
  /* doesn't work yet
      public void testStep8() {
         test.wsdl.interop3.import1.step6.definitions.SoapInteropImport1PortType 
binding;
          try {
              binding = new 
SoapInteropImport1PortTypeServiceLocator().getSoapInteropImport1Port(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 {
              java.lang.String value = null;
              value = binding.echoString(new java.lang.String());
          }
          catch (java.rmi.RemoteException re) {
              re.printStackTrace();
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  */
  
      public static void main(String[] args) {
          junit.textui.TestRunner.run(new 
junit.framework.TestSuite(Import1TestCase.class));
      } // main
  
  }
  
  
  
  
  1.1                  xml-axis/java/test/wsdl/interop3/import2/Import2TestCase.java
  
  Index: Import2TestCase.java
  ===================================================================
  package test.wsdl.interop3.import2;
  
  import test.wsdl.interop3.import2.definitions.SoapInteropImport2PortType;
  import 
test.wsdl.interop3.import2.step6.definitions.SoapInteropImport2PortTypeServiceLocator;
  import test.wsdl.interop3.import2.xsd.SOAPStruct;
  
  /*
      <!-- SOAP Builder's round III web services          -->
      <!-- interoperability testing:  import2             -->
      <!-- (see http://www.whitemesa.net/r3/plan.html)    -->
      <!-- Step 1.  Start with predefined WSDL            -->
      <!-- Step 2.  Generate client from predefined WSDL  -->
      <!-- Step 3.  Test generated client against         -->
      <!--          pre-built server                      -->
      <!-- Step 4.  Generate server from predefined WSDL  -->
      <!-- Step 5.  Test generated client against         -->
      <!--          generated server                      -->
      <!-- Step 6.  Generate second client from           -->
      <!--          generated server's WSDL (some clients -->
      <!--          can do this dynamically)              -->
      <!-- Step 7.  Test second generated client against  -->
      <!--          generated server                      -->
      <!-- Step 8.  Test second generated client against  -->
      <!--          pre-built server                      -->
  */
  
  public class Import2TestCase extends junit.framework.TestCase {
      public Import2TestCase(String name) {
          super(name);
      }
  
      public void testStep3() {
          SoapInteropImport2PortType binding;
          try {
              binding = new 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 {
              SOAPStruct value = null;
              value = binding.echoStruct(new SOAPStruct());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep5() {
          SoapInteropImport2PortType binding;
          try {
              binding = new 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 {
              SOAPStruct value = null;
              value = binding.echoStruct(new SOAPStruct());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep7() {
          test.wsdl.interop3.import2.step6.definitions.SoapInteropImport2PortType 
binding;
          try {
              binding = new 
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.import2.step6.xsd.SOAPStruct value = null;
              value = binding.echoStruct(new 
test.wsdl.interop3.import2.step6.xsd.SOAPStruct());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
  /* doesn't work yet
      public void testStep8() {
          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);
          }
      }
  */
  
  /* 
     Not working right now.
      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
  
  }
  
  
  
  
  1.1                  xml-axis/java/test/wsdl/interop3/import3/Import3TestCase.java
  
  Index: Import3TestCase.java
  ===================================================================
  package test.wsdl.interop3.import3;
  
  import 
test.wsdl.interop3.import3.step6.definitions.SoapInteropImport3PortTypeServiceLocator;
  
  import test.wsdl.interop3.import3.xsd.SOAPStruct;
  
  /*
      <!-- SOAP Builder's round III web services          -->
      <!-- interoperability testing:  import3             -->
      <!-- (see http://www.whitemesa.net/r3/plan.html)    -->
      <!-- Step 1.  Start with predefined WSDL            -->
      <!-- Step 2.  Generate client from predefined WSDL  -->
      <!-- Step 3.  Test generated client against         -->
      <!--          pre-built server                      -->
      <!-- Step 4.  Generate server from predefined WSDL  -->
      <!-- Step 5.  Test generated client against         -->
      <!--          generated server                      -->
      <!-- Step 6.  Generate second client from           -->
      <!--          generated server's WSDL (some clients -->
      <!--          can do this dynamically)              -->
      <!-- Step 7.  Test second generated client against  -->
      <!--          generated server                      -->
      <!-- Step 8.  Test second generated client against  -->
      <!--          pre-built server                      -->
  */
  
  public class Import3TestCase extends junit.framework.TestCase {
      public Import3TestCase(String name) {
          super(name);
      }
  
      public void testStep3EchoStruct() {
          SoapInteropImport3PortType binding;
          try {
              binding = new Import3Locator().getSoapInteropImport3Port();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException 
caught: " + jre);
          }
          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 void testStep3EchoStructArray() {
          SoapInteropImport3PortType binding;
          try {
              binding = new Import3Locator().getSoapInteropImport3Port();
          }
          catch (javax.xml.rpc.ServiceException jre) {
              throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException 
caught: " + jre);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              SOAPStruct[] value = null;
              value = binding.echoStructArray(new SOAPStruct[0]);
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep5EchoStruct() {
          SoapInteropImport3PortType binding;
          try {
              binding = new Import3Locator().getSoapInteropImport3Port(new 
java.net.URL("http://localhost:8080/axis/services/SoapInteropImport3Port";));
          }
          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 void testStep5EchoStructArray() {
          SoapInteropImport3PortType binding;
          try {
              binding = new Import3Locator().getSoapInteropImport3Port(new 
java.net.URL("http://localhost:8080/axis/services/SoapInteropImport3Port";));
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              SOAPStruct[] value = null;
              value = binding.echoStructArray(new SOAPStruct[0]);
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep7EchoStruct() {
          test.wsdl.interop3.import3.step6.definitions.SoapInteropImport3PortType 
binding;
          try {
              binding = new 
SoapInteropImport3PortTypeServiceLocator().getSoapInteropImport3Port();
          }
          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.import3.step6.xsd.SOAPStruct value = null;
              value = binding.echoStruct(new 
test.wsdl.interop3.import3.step6.xsd.SOAPStruct());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep7EchoStructArray() {
          test.wsdl.interop3.import3.step6.definitions.SoapInteropImport3PortType 
binding;
          try {
              binding = new 
SoapInteropImport3PortTypeServiceLocator().getSoapInteropImport3Port();
          }
          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.import3.step6.xsd.SOAPStruct[] value = null;
              value = binding.echoStructArray(new 
test.wsdl.interop3.import3.step6.xsd.SOAPStruct[0]);
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
  /* doesn't work yet
      public void testStep8EchoStruct() {
          test.wsdl.interop3.import3.step6.definitions.SoapInteropImport3PortType 
binding;
          try {
              binding = new 
SoapInteropImport3PortTypeServiceLocator().getSoapInteropImport3Port(new 
java.net.URL("http://mssoapinterop.org/stkV3/wsdl/import3.wsdl";));
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              test.wsdl.interop3.import3.step6.xsd.SOAPStruct value = null;
              value = binding.echoStruct(new 
test.wsdl.interop3.import3.step6.xsd.SOAPStruct());
          }
          catch (java.rmi.RemoteException re) {
              throw new junit.framework.AssertionFailedError("Remote Exception caught: 
" + re);
          }
      }
  
      public void testStep8EchoStructArray() {
          test.wsdl.interop3.import3.step6.definitions.SoapInteropImport3PortType 
binding;
          try {
              binding = new 
SoapInteropImport3PortTypeServiceLocator().getSoapInteropImport3Port(new 
java.net.URL("http://mssoapinterop.org/stkV3/wsdl/import3.wsdl";));
          }
          catch (Throwable t) {
              throw new junit.framework.AssertionFailedError("Throwable caught: " + t);
          }
          assertTrue("binding is null", binding != null);
  
          try {
              test.wsdl.interop3.import3.step6.xsd.SOAPStruct[] value = null;
              value = binding.echoStructArray(new 
test.wsdl.interop3.import3.step6.xsd.SOAPStruct[0]);
          }
          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(Import3TestCase.class));
      } // main
  
  }
  
  
  
  


Reply via email to