Debian Codegraph @

test/wsdl/gateway/GatewayServiceTestCase.java

raw
1 /**
2 * GatewayServiceTestCase.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package test.wsdl.gateway;
9
10 public class GatewayServiceTestCase extends junit.framework.TestCase {
11 public GatewayServiceTestCase(java.lang.String name) {
12 super(name);
13 }
14 public void test1GatewayTest1() throws Exception {
15 test.wsdl.gateway.Gateway binding;
16 try {
17 binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
18 }
19 catch (javax.xml.rpc.ServiceException jre) {
20 if(jre.getLinkedCause()!=null)
21 jre.getLinkedCause().printStackTrace();
22 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
23 }
24 assertTrue("binding is null", binding != null);
25
26 // Test operation
27 test.wsdl.gateway.MyClass myClass = new test.wsdl.gateway.MyClass();
28 myClass.setValues(new String[][]{{"hello"}});
29 java.lang.String value = null;
30 value = binding.test1(myClass);
31 // TBD - validate results
32 }
33
34 public void test2GatewayTest2() throws Exception {
35 test.wsdl.gateway.Gateway binding;
36 try {
37 binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
38 }
39 catch (javax.xml.rpc.ServiceException jre) {
40 if(jre.getLinkedCause()!=null)
41 jre.getLinkedCause().printStackTrace();
42 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
43 }
44 assertTrue("binding is null", binding != null);
45
46 // Test operation
47 test.wsdl.gateway.MyClass response = null;
48 response = binding.test2();
49 assertTrue(response.getValues()!=null);
50 System.out.println("Response cell 1,1="+response.getValues()[1][1]);
51 }
52
53 public void test3GatewayTest3() throws Exception {
54 test.wsdl.gateway.Gateway binding;
55 try {
56 binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
57 }
58 catch (javax.xml.rpc.ServiceException jre) {
59 if(jre.getLinkedCause()!=null)
60 jre.getLinkedCause().printStackTrace();
61 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
62 }
63 assertTrue("binding is null", binding != null);
64
65 // Test operation
66 java.lang.String[][] value = null;
67 value = binding.test3();
68 // TBD - validate results
69 }
70
71 public void test4GatewayTest4() throws Exception {
72 test.wsdl.gateway.Gateway binding;
73 try {
74 binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
75 }
76 catch (javax.xml.rpc.ServiceException jre) {
77 if(jre.getLinkedCause()!=null)
78 jre.getLinkedCause().printStackTrace();
79 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
80 }
81 assertTrue("binding is null", binding != null);
82
83 // Test operation
84 java.lang.String value = null;
85 value = binding.test4(new java.lang.String[0][0]);
86 // TBD - validate results
87 }
88
89 }