File: GatewayServiceTestCase.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (89 lines) | stat: -rw-r--r-- 3,247 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
 * GatewayServiceTestCase.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package test.wsdl.gateway;

public class GatewayServiceTestCase extends junit.framework.TestCase {
    public GatewayServiceTestCase(java.lang.String name) {
        super(name);
    }
    public void test1GatewayTest1() throws Exception {
        test.wsdl.gateway.Gateway binding;
        try {
            binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        // Test operation
        test.wsdl.gateway.MyClass myClass = new test.wsdl.gateway.MyClass();
        myClass.setValues(new String[][]{{"hello"}});
        java.lang.String value = null;
        value = binding.test1(myClass);
        // TBD - validate results
    }

    public void test2GatewayTest2() throws Exception {
        test.wsdl.gateway.Gateway binding;
        try {
            binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        // Test operation
        test.wsdl.gateway.MyClass response = null;
        response = binding.test2();
        assertTrue(response.getValues()!=null);
        System.out.println("Response cell 1,1="+response.getValues()[1][1]);
    }

    public void test3GatewayTest3() throws Exception {
        test.wsdl.gateway.Gateway binding;
        try {
            binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        // Test operation
        java.lang.String[][] value = null;
        value = binding.test3();
        // TBD - validate results
    }

    public void test4GatewayTest4() throws Exception {
        test.wsdl.gateway.Gateway binding;
        try {
            binding = new test.wsdl.gateway.GatewayServiceLocator().getGateway();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        // Test operation
        java.lang.String value = null;
        value = binding.test4(new java.lang.String[0][0]);
        // TBD - validate results
    }

}