⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basetypesinteropteststestcase.java

📁 Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应的Java工程 进行使用
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        // Test operation        org.apache.axis.types.Name value = null;        value = binding.echoName(new org.apache.axis.types.Name());        // TBD - validate results    }    public void test17InteropTestsPortEchoNCName() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.NCName value = null;        value = binding.echoNCName(new org.apache.axis.types.NCName());        // TBD - validate results    }    public void test18InteropTestsPortEchoID() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.Id value = null;        value = binding.echoID(new org.apache.axis.types.Id());        // TBD - validate results    }    public void test19InteropTestsPortEchoIDREF() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.IDRef value = null;        IDRef ref = new IDRef();        ref.setValue("THX1138");        value = binding.echoIDREF(ref);        assertEquals(ref, value);    }    public void test20InteropTestsPortEchoIDREFS() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.IDRefs value = null;        IDRefs refs = new IDRefs();        refs.setValue("THX1138 R2D2 C3P0");        value = binding.echoIDREFS(refs);        assertEquals(refs, value);    }    public void test21InteropTestsPortEchoEntity() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.Entity value = null;        value = binding.echoEntity(new org.apache.axis.types.Entity());        // TBD - validate results    }    public void test22InteropTestsPortEchoEntities() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.Entities value = null;        value = binding.echoEntities(new org.apache.axis.types.Entities());        // TBD - validate results    }    public void test23InteropTestsPortEchoNonPositiveInteger() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.NonPositiveInteger value = null;        value = binding.echoNonPositiveInteger(new org.apache.axis.types.NonPositiveInteger("0"));        // TBD - validate results    }    public void test24InteropTestsPortEchoNegativeInteger() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.NegativeInteger value = null;        value = binding.echoNegativeInteger(new org.apache.axis.types.NegativeInteger("-1"));        // TBD - validate results    }    public void test25InteropTestsPortEchoLong() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        long value = -3;        value = binding.echoLong(0);        // TBD - validate results    }    public void test26InteropTestsPortEchoInt() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        int value = -3;        value = binding.echoInt(0);        // TBD - validate results    }    public void test27InteropTestsPortEchoShort() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        short value = -3;        value = binding.echoShort((short)0);        // TBD - validate results    }    public void test28InteropTestsPortEchoByte() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        byte value = -3;        value = binding.echoByte((byte)0);        // TBD - validate results    }    public void test29InteropTestsPortEchoNonNegativeInteger() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.NonNegativeInteger value = null;        value = binding.echoNonNegativeInteger(new org.apache.axis.types.NonNegativeInteger("0"));        // TBD - validate results    }    public void test30InteropTestsPortEchoUnsignedLong() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.UnsignedLong value = null;        value = binding.echoUnsignedLong(new org.apache.axis.types.UnsignedLong(0));        // TBD - validate results    }    public void test31InteropTestsPortEchoUnsignedInt() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.UnsignedInt value = null;        value = binding.echoUnsignedInt(new org.apache.axis.types.UnsignedInt(0));        // TBD - validate results    }    public void test32InteropTestsPortEchoUnsignedShort() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.UnsignedShort value = null;        value = binding.echoUnsignedShort(new org.apache.axis.types.UnsignedShort(0));        // TBD - validate results    }    public void test33InteropTestsPortEchoUnsignedByte() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.UnsignedByte value = null;        value = binding.echoUnsignedByte(new org.apache.axis.types.UnsignedByte(0));        // TBD - validate results    }    public void test34InteropTestsPortEchoPositiveInteger() throws Exception {        test.wsdl.interop5.basetype.InteropTestsExpType binding;        try {            binding = new test.wsdl.interop5.basetype.BaseTypesInteropTestsLocator().getInteropTestsPort(url);        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        org.apache.axis.types.PositiveInteger value = null;        value = binding.echoPositiveInteger(new org.apache.axis.types.PositiveInteger("1"));        // TBD - validate results    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -