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 ia...@apache.org on 2003/12/19 16:09:45 UTC

cvs commit: ws-axis/java/test/wsdl/datatypes DataTypesTestCase.java

ias         2003/12/19 07:09:45

  Modified:    java/test/wsdl/datatypes DataTypesTestCase.java
  Log:
  Added a test case (test7DataTypesSoapGetSimpleList) for <xsd:list itemType>
  
  Revision  Changes    Path
  1.5       +27 -0     ws-axis/java/test/wsdl/datatypes/DataTypesTestCase.java
  
  Index: DataTypesTestCase.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/test/wsdl/datatypes/DataTypesTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DataTypesTestCase.java	25 Jul 2002 16:14:12 -0000	1.4
  +++ DataTypesTestCase.java	19 Dec 2003 15:09:45 -0000	1.5
  @@ -147,5 +147,32 @@
           }
       }
   
  +    public void test7DataTypesSoapGetSimpleList() {
  +        DataTypes_Port binding;
  +        try {
  +            binding = new DataTypes_ServiceLocator().getDataTypes();
  +        }
  +        catch (javax.xml.rpc.ServiceException jre) {
  +            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
  +        }
  +        assertTrue("binding is null", binding != null);
  +
  +        try {
  +            java.lang.String[] inputList = new java.lang.String[3];
  +            inputList[0] = "one";
  +            inputList[1] = "two";
  +            inputList[2] = "three";
  +            java.lang.String[] outputList = binding.getSimpleList(inputList);
  +            assertTrue("outputList[0] should be \"one_response\", but instead is " + outputList[0], 
  +                    "one_response".equals(outputList[0]));
  +            assertTrue("outputList[1] should be \"two_response\", but instead is " + outputList[1], 
  +                            "two_response".equals(outputList[1]));
  +            assertTrue("outputList[2] should be \"three_response\", but instead is " + outputList[2], 
  +                                    "three_response".equals(outputList[2]));
  +        }
  +        catch (java.rmi.RemoteException re) {
  +            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
  +        }
  +    }
   }