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

📄 typetestservicetestcase.java

📁 Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应的Java工程 进行使用
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        int value = -3;        value = binding.methodInt(0, new javax.xml.rpc.holders.IntHolder(0));        // TBD - validate results    }    public void test56TypeTestMethodLong() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        long value = -3;        value = binding.methodLong(0, new javax.xml.rpc.holders.LongHolder(0));        // TBD - validate results    }    public void test57TypeTestMethodFloat() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        float value = -3;        value = binding.methodFloat(0, new javax.xml.rpc.holders.FloatHolder(0));        // TBD - validate results    }    public void test58TypeTestMethodDouble() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        double value = -3;        value = binding.methodDouble(0, new javax.xml.rpc.holders.DoubleHolder(0));        // TBD - validate results    }    public void test59TypeTestMethodString() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        java.lang.String value = null;        value = binding.methodString(new java.lang.String(), new javax.xml.rpc.holders.StringHolder(new java.lang.String()));        // TBD - validate results    }    public void test60TypeTestMethodInteger() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        java.math.BigInteger value = null;        value = binding.methodInteger(new java.math.BigInteger("0"), new javax.xml.rpc.holders.BigIntegerHolder(new java.math.BigInteger("0")));        // TBD - validate results    }    public void test61TypeTestMethodDecimal() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        java.math.BigDecimal value = null;        value = binding.methodDecimal(new java.math.BigDecimal(0), new javax.xml.rpc.holders.BigDecimalHolder(new java.math.BigDecimal(0)));        // TBD - validate results    }    public void test62TypeTestMethodDateTime() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        java.util.Calendar value = null;        value = binding.methodDateTime(java.util.Calendar.getInstance(), new javax.xml.rpc.holders.CalendarHolder(java.util.Calendar.getInstance()));        // TBD - validate results    }    public void test63TypeTestMethodQName() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        javax.xml.namespace.QName value = null;        value = binding.methodQName(new javax.xml.namespace.QName("http://double-double", "toil-and-trouble"), new javax.xml.rpc.holders.QNameHolder(new javax.xml.namespace.QName("http://double-double", "toil-and-trouble")));        // TBD - validate results    }    public void test64TypeTestMethodTime() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        org.apache.axis.types.Time value = null;        value = binding.methodTime(new org.apache.axis.types.Time("15:45:45.275Z"), new org.apache.axis.holders.TimeHolder(new org.apache.axis.types.Time("15:45:45.275Z")));        // TBD - validate results    }    public void test65TypeTestMethodUnsignedLong() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        org.apache.axis.types.UnsignedLong value = null;        value = binding.methodUnsignedLong(new org.apache.axis.types.UnsignedLong(0), new org.apache.axis.holders.UnsignedLongHolder(new org.apache.axis.types.UnsignedLong(0)));        // TBD - validate results    }    public void test66TypeTestMethodUnsignedInt() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        org.apache.axis.types.UnsignedInt value = null;        value = binding.methodUnsignedInt(new org.apache.axis.types.UnsignedInt(0), new org.apache.axis.holders.UnsignedIntHolder(new org.apache.axis.types.UnsignedInt(0)));        // TBD - validate results    }    public void test67TypeTestMethodUnsignedShort() throws Exception {        test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;        try {            binding = (test.wsdl.types.comprehensive_service.TypeTestBindingStub)                          new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertNotNull("binding is null", binding);        // Time out after a minute        binding.setTimeout(60000);        // Test operation        org.apache.axis.types.UnsignedShort value = null;        value = binding.methodUnsignedShort(new org.apache.axis.types.UnsignedShort(0), new org.apache.axis.holders.UnsignedShortHolder(new org.apache.axis.types.UnsignedShort(0)));        // TBD - validate results    }    p

⌨️ 快捷键说明

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