KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > parameterOrder > VerifyTestCase


1 package test.wsdl.parameterOrder;
2
3
4
5 /**
6 * This class is taken from the generated TestCase. The generated test case is still generated
7 * to verify that the generated test case is always compilable. THIS test case exists
8 * because I know this is correct. If the generation of the bindings changes, it's likely that
9 * the generation of the TestCase will change as well, so we wouldn't know whether they changed
10 * for the worse if they all changed the same. This test case should fail to compile if generated
11 * stuff changed for the worse.
12 */

13
14 public class VerifyTestCase extends junit.framework.TestCase {
15     public VerifyTestCase(String JavaDoc name) {
16         super(name);
17     }
18
19     public void testParameterOrder() {
20         test.wsdl.parameterOrder.ParameterOrderTest binding;
21         try {
22             binding = new ParameterOrderServiceLocator().getParameterOrder();
23         } catch (javax.xml.rpc.ServiceException JavaDoc jre) {
24             throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
25         }
26         assertTrue("binding is null", binding != null);
27         try {
28             binding.oneIn(0);
29         } catch (java.rmi.RemoteException JavaDoc re) {
30             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
31         }
32         try {
33             binding.oneInout(new javax.xml.rpc.holders.IntHolder JavaDoc(0));
34         } catch (java.rmi.RemoteException JavaDoc re) {
35             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
36         }
37         try {
38             binding.oneOut(new javax.xml.rpc.holders.IntHolder JavaDoc());
39         } catch (java.rmi.RemoteException JavaDoc re) {
40             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
41         }
42         try {
43             binding.fiveInNoOrder(0, 0, 0, 0, 0);
44         } catch (java.rmi.RemoteException JavaDoc re) {
45             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
46         }
47         try {
48             binding.fiveInoutNoOrder(new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0));
49         } catch (java.rmi.RemoteException JavaDoc re) {
50             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
51         }
52         try {
53             binding.fiveOutNoOrder(new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc());
54         } catch (java.rmi.RemoteException JavaDoc re) {
55             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
56         }
57         try {
58             binding.fiveIn(0, 0, 0, 0, 0);
59         } catch (java.rmi.RemoteException JavaDoc re) {
60             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
61         }
62         try {
63             binding.fiveInout(new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0));
64         } catch (java.rmi.RemoteException JavaDoc re) {
65             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
66         }
67         try {
68             binding.fiveOut(new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc());
69         } catch (java.rmi.RemoteException JavaDoc re) {
70             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
71         }
72         try {
73             int value = -3;
74             value = binding.someInoutPartialOrder1(new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0));
75         } catch (java.rmi.RemoteException JavaDoc re) {
76             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
77         }
78         try {
79             binding.someInoutPartialOrder2(new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(0), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc());
80         } catch (java.rmi.RemoteException JavaDoc re) {
81             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
82         }
83         try {
84             binding.fourOutPartialOrder(new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc());
85         } catch (java.rmi.RemoteException JavaDoc re) {
86             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
87         }
88         try {
89             int value = -3;
90             value = binding.oneReturn(new javax.xml.rpc.holders.IntHolder JavaDoc(), new javax.xml.rpc.holders.IntHolder JavaDoc());
91         } catch (java.rmi.RemoteException JavaDoc re) {
92             throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
93         }
94     }
95 }
96
97
Popular Tags