/** * DataTypesTestCase.java * * This file was auto-generated from WSDL * by the Apache Axis Wsdl2java emitter. */ package test.wsdl.datatypes; import javax.xml.namespace.QName; public class DataTypesTestCase extends junit.framework.TestCase { public DataTypesTestCase(String name) { super(name); } public void test1DataTypesSoapSayHello() { DataTypes_PortType 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 value = null; value = binding.sayHello(); assertTrue("sayHello should be \"Hello World!\", but instead is " + value, "Hello World!".equals(value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); } } public void test2DataTypesSoapSayHelloName() { DataTypes_PortType 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 value = null; value = binding.sayHelloName(new java.lang.String("Axis")); assertTrue("sayHelloName should be \"Hello Axis\", but instead is " + value, "Hello Axis".equals(value)); } catch (java.rmi.RemoteException re) { throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re); } } public void test3DataTypesSoapGetIntArray() { DataTypes_PortType 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 { ArrayOfInt value = null; value = binding.getIntArray(); int[] array = value.get_int(); assertTrue("getIntArray size should be 5, instead is " + array.length, array.length == 5); for(int i=0;i