📄 typetestservicetestcase.java
字号:
/** * TypeTestServiceTestCase.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2alpha Dec 15, 2003 (12:04:17 EST) WSDL2Java emitter. */package test.wsdl.types.comprehensive_service;public class TypeTestServiceTestCase extends junit.framework.TestCase { public TypeTestServiceTestCase(java.lang.String name) { super(name); } /* FIXME: RUNTIME WSDL broken. public void testTypeTestWSDL() throws Exception { javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance(); java.net.URL url = new java.net.URL(new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTestAddress() + "?WSDL"); javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getServiceName()); assertTrue(service != null); } */ public void test1TypeTestAllPrimitivesIn() 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 binding.allPrimitivesIn(new java.lang.String(), new java.math.BigInteger("0"), 0, 0, (short)0, new java.math.BigDecimal(0), 0, 0, true, (byte)0, new javax.xml.namespace.QName("http://double-double", "toil-and-trouble"), java.util.Calendar.getInstance(), new byte[0], new byte[0], new java.lang.String(), new java.lang.Boolean(false), new java.lang.Float(0), new java.lang.Double(0), new java.math.BigDecimal(0), new java.lang.Integer(0), new java.lang.Short((short)0), new byte[0], new org.apache.axis.types.Time("15:45:45.275Z"), new org.apache.axis.types.UnsignedLong(0), new org.apache.axis.types.UnsignedInt(0), new org.apache.axis.types.UnsignedShort(0), new org.apache.axis.types.UnsignedByte(0), new org.apache.axis.types.NonNegativeInteger("0"), new org.apache.axis.types.PositiveInteger("1"), new org.apache.axis.types.NonPositiveInteger("0"), new org.apache.axis.types.NegativeInteger("-1"), new org.apache.axis.types.URI("urn:testing"), new org.apache.axis.types.Year(2000), new org.apache.axis.types.Month(1), new org.apache.axis.types.Day(1), new org.apache.axis.types.YearMonth(2000,1), new org.apache.axis.types.MonthDay(1, 1)); // TBD - validate results } public void test2TypeTestAllPrimitivesInout() 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 binding.allPrimitivesInout(new javax.xml.rpc.holders.StringHolder(new java.lang.String()), new javax.xml.rpc.holders.BigIntegerHolder(new java.math.BigInteger("0")), new javax.xml.rpc.holders.IntHolder(0), new javax.xml.rpc.holders.LongHolder(0), new javax.xml.rpc.holders.ShortHolder((short)0), new javax.xml.rpc.holders.BigDecimalHolder(new java.math.BigDecimal(0)), new javax.xml.rpc.holders.FloatHolder(0), new javax.xml.rpc.holders.DoubleHolder(0), new javax.xml.rpc.holders.BooleanHolder(true), new javax.xml.rpc.holders.ByteHolder((byte)0), new javax.xml.rpc.holders.QNameHolder(new javax.xml.namespace.QName("http://double-double", "toil-and-trouble")), new javax.xml.rpc.holders.CalendarHolder(java.util.Calendar.getInstance()), new javax.xml.rpc.holders.ByteArrayHolder(new byte[0]), new javax.xml.rpc.holders.ByteArrayHolder(new byte[0]), new javax.xml.rpc.holders.StringHolder(new java.lang.String()), new javax.xml.rpc.holders.BooleanWrapperHolder(new java.lang.Boolean(false)), new javax.xml.rpc.holders.FloatWrapperHolder(new java.lang.Float(0)), new javax.xml.rpc.holders.DoubleWrapperHolder(new java.lang.Double(0)), new javax.xml.rpc.holders.BigDecimalHolder(new java.math.BigDecimal(0)), new javax.xml.rpc.holders.IntegerWrapperHolder(new java.lang.Integer(0)), new javax.xml.rpc.holders.ShortWrapperHolder(new java.lang.Short((short)0)), new javax.xml.rpc.holders.ByteArrayHolder(new byte[0]), new org.apache.axis.holders.TimeHolder(new org.apache.axis.types.Time("15:45:45.275Z")), new org.apache.axis.holders.UnsignedLongHolder(new org.apache.axis.types.UnsignedLong(0)), new org.apache.axis.holders.UnsignedIntHolder(new org.apache.axis.types.UnsignedInt(0)), new org.apache.axis.holders.UnsignedShortHolder(new org.apache.axis.types.UnsignedShort(0)), new org.apache.axis.holders.UnsignedByteHolder(new org.apache.axis.types.UnsignedByte(0)), new org.apache.axis.holders.NonNegativeIntegerHolder(new org.apache.axis.types.NonNegativeInteger("0")), new org.apache.axis.holders.PositiveIntegerHolder(new org.apache.axis.types.PositiveInteger("1")), new org.apache.axis.holders.NonPositiveIntegerHolder(new org.apache.axis.types.NonPositiveInteger("0")), new org.apache.axis.holders.NegativeIntegerHolder(new org.apache.axis.types.NegativeInteger("-1")), new org.apache.axis.holders.URIHolder(new org.apache.axis.types.URI("urn:testing")), new org.apache.axis.holders.YearHolder(new org.apache.axis.types.Year(2000)), new org.apache.axis.holders.MonthHolder(new org.apache.axis.types.Month(1)), new org.apache.axis.holders.DayHolder(new org.apache.axis.types.Day(1)), new org.apache.axis.holders.YearMonthHolder(new org.apache.axis.types.YearMonth(2000,1)), new org.apache.axis.holders.MonthDayHolder(new org.apache.axis.types.MonthDay(1, 1))); // TBD - validate results } public void test3TypeTestAllPrimitivesOut() 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 binding.allPrimitivesOut(new javax.xml.rpc.holders.StringHolder(), new javax.xml.rpc.holders.BigIntegerHolder(), new javax.xml.rpc.holders.IntHolder(), new javax.xml.rpc.holders.LongHolder(), new javax.xml.rpc.holders.ShortHolder(), new javax.xml.rpc.holders.BigDecimalHolder(), new javax.xml.rpc.holders.FloatHolder(), new javax.xml.rpc.holders.DoubleHolder(), new javax.xml.rpc.holders.BooleanHolder(), new javax.xml.rpc.holders.ByteHolder(), new javax.xml.rpc.holders.QNameHolder(), new javax.xml.rpc.holders.CalendarHolder(), new javax.xml.rpc.holders.ByteArrayHolder(), new javax.xml.rpc.holders.ByteArrayHolder(), new javax.xml.rpc.holders.StringHolder(), new javax.xml.rpc.holders.BooleanWrapperHolder(), new javax.xml.rpc.holders.FloatWrapperHolder(), new javax.xml.rpc.holders.DoubleWrapperHolder(), new javax.xml.rpc.holders.BigDecimalHolder(), new javax.xml.rpc.holders.IntegerWrapperHolder(), new javax.xml.rpc.holders.ShortWrapperHolder(), new javax.xml.rpc.holders.ByteArrayHolder(), new org.apache.axis.holders.TimeHolder(), new org.apache.axis.holders.UnsignedLongHolder(), new org.apache.axis.holders.UnsignedIntHolder(), new org.apache.axis.holders.UnsignedShortHolder(), new org.apache.axis.holders.UnsignedByteHolder(), new org.apache.axis.holders.NonNegativeIntegerHolder(), new org.apache.axis.holders.PositiveIntegerHolder(), new org.apache.axis.holders.NonPositiveIntegerHolder(), new org.apache.axis.holders.NegativeIntegerHolder(), new org.apache.axis.holders.URIHolder(), new org.apache.axis.holders.YearHolder(), new org.apache.axis.holders.MonthHolder(), new org.apache.axis.holders.DayHolder(), new org.apache.axis.holders.YearMonthHolder(), new org.apache.axis.holders.MonthDayHolder()); // TBD - validate results } public void test4TypeTestEnumIn() 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 binding.enumIn(test.wsdl.types.comprehensive_types.Enum.one); // TBD - validate results } public void test5TypeTestEnumInout() 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 binding.enumInout(new test.wsdl.types.comprehensive_types.holders.EnumHolder(test.wsdl.types.comprehensive_types.Enum.one)); // TBD - validate results } public void test6TypeTestEnumOut() 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 binding.enumOut(new test.wsdl.types.comprehensive_types.holders.EnumHolder()); // TBD - validate results } public void test7TypeTestEnumReturn() 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 test.wsdl.types.comprehensive_types.Enum value = null; value = binding.enumReturn(); // TBD - validate results } public void test8TypeTestEnumIntIn() 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 binding.enumIntIn(test.wsdl.types.comprehensive_types.EnumInt.value1); // TBD - validate results } public void test9TypeTestEnumIntInout() 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 binding.enumIntInout(new test.wsdl.types.comprehensive_types.holders.EnumIntHolder(test.wsdl.types.comprehensive_types.EnumInt.value1)); // TBD - validate results } public void test10TypeTestEnumIntOut() 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 binding.enumIntOut(new test.wsdl.types.comprehensive_types.holders.EnumIntHolder()); // TBD - validate results } public void test11TypeTestEnumIntReturn() 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 test.wsdl.types.comprehensive_types.EnumInt value = null; value = binding.enumIntReturn(); // TBD - validate results } public void test12TypeTestArrayIn() 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 binding.arrayIn(new java.lang.String[0]); // TBD - validate results } public void test13TypeTestArrayInout() throws Exception { test.wsdl.types.comprehensive_service.TypeTestBindingStub binding;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -