📄 roundtrip2testservicetestcase.java
字号:
/** * RoundTrip2TestServiceTestCase.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2RC3 Feb 19, 2005 (03:03:59 EST) WSDL2Java emitter. */package test.wsdl.roundtrip2;public class RoundTrip2TestServiceTestCase extends junit.framework.TestCase { public RoundTrip2TestServiceTestCase(java.lang.String name) { super(name); } public void testRoundTrip2TestWSDL() throws Exception { javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance(); java.net.URL url = new java.net.URL(new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2TestAddress() + "?WSDL"); javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getServiceName()); assertTrue(service != null); } public void test1RoundTrip2TestBooleanTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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 boolean value = false; value = binding.booleanTest(true); // TBD - validate results } public void test2RoundTrip2TestWrapperBooleanTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Boolean value = null; value = binding.wrapperBooleanTest(new java.lang.Boolean(false)); // TBD - validate results } public void test3RoundTrip2TestByteTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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 byte value = -3; value = binding.byteTest((byte)0); // TBD - validate results } public void test4RoundTrip2TestWrapperByteTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Byte value = null; value = binding.wrapperByteTest(new java.lang.Byte((byte)0)); // TBD - validate results } public void test5RoundTrip2TestShortTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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 short value = -3; value = binding.shortTest((short)0); // TBD - validate results } public void test6RoundTrip2TestWrapperShortTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Short value = null; value = binding.wrapperShortTest(new java.lang.Short((short)0)); // TBD - validate results } public void test7RoundTrip2TestIntTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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 int value = -3; value = binding.intTest(0); // TBD - validate results } public void test8RoundTrip2TestWrapperIntegerTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Integer value = null; value = binding.wrapperIntegerTest(new java.lang.Integer(0)); // TBD - validate results } public void test9RoundTrip2TestLongTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.longTest(0); // TBD - validate results } public void test10RoundTrip2TestWrapperLongTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Long value = null; value = binding.wrapperLongTest(new java.lang.Long(0)); // TBD - validate results } public void test11RoundTrip2TestFloatTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.floatTest(0); // TBD - validate results } public void test12RoundTrip2TestWrapperFloatTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Float value = null; value = binding.wrapperFloatTest(new java.lang.Float(0)); // TBD - validate results } public void test13RoundTrip2TestDoubleTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.doubleTest(0); // TBD - validate results } public void test14RoundTrip2TestWrapperDoubleTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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.Double value = null; value = binding.wrapperDoubleTest(new java.lang.Double(0)); // TBD - validate results } public void test15RoundTrip2TestBooleanArrayTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding; try { binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub) new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test(); } 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 boolean[] value = null; value = binding.booleanArrayTest(new boolean[]{true,false}); // TBD - validate results } public void test16RoundTrip2TestByteArrayTest() throws Exception { test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -