FileDocCategorySizeDatePackage
WrappedInOutTestCase.javaAPI DocApache Axis 1.47436Sat Apr 22 18:57:28 BST 2006test.wsdl.wrapped_inout

WrappedInOutTestCase

public class WrappedInOutTestCase extends TestCase
WrappedInOutTestCase.java This file was auto-generated from WSDL by the Apache Axis WSDL2Java emitter.

Fields Summary
Constructors Summary
public WrappedInOutTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1WrappedInOutEchoEmptyString()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        java.lang.String expected = new String("");
        java.lang.String value = null;
        value = binding.echoString(expected);
        assertEquals(value, expected);
    
public voidtest1WrappedInOutEchoString()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        java.lang.String expected = new String("This is a test");
        java.lang.String value = null;
        value = binding.echoString(expected);
        assertEquals(value, expected);
    
public voidtest2WrappedInOutEchoStringIO()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        java.lang.String expected = new String("This is a test");
        java.lang.String value = null;
        value = binding.echoStringIO(expected);
        assertEquals(value, expected);
    
public voidtest3WrappedInOutEchoStringIOret()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        java.lang.String value = null;
        javax.xml.rpc.holders.StringHolder ioarg = new javax.xml.rpc.holders.StringHolder("in1");
        value = binding.echoStringIOret(ioarg);
        assertEquals(value, "return");
        assertNotNull(ioarg);
        assertEquals(ioarg.value, "out1");
    
public voidtest4WrappedInOutEchoStringInIO()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        javax.xml.rpc.holders.StringHolder holder = new javax.xml.rpc.holders.StringHolder("in2");
        binding.echoStringInIO("in1", holder);
        assertNotNull(holder);
        assertEquals(holder.value, "in1");
    
public voidtest5WrappedInOutEchoStringBig()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        java.lang.String value = null;
        javax.xml.rpc.holders.StringHolder ioarg1 = new javax.xml.rpc.holders.StringHolder("ioarg1");
        javax.xml.rpc.holders.StringHolder ioarg2 = new javax.xml.rpc.holders.StringHolder("ioarg2");
        value = binding.echoStringBig("firstin1", ioarg1, ioarg2);
        assertNotNull(value);
        assertEquals(value, "firstin1");
        assertEquals(ioarg1.value, "out1");
        assertEquals(ioarg2.value, "out2");
    
public voidtest6WrappedInOutHelloInOut()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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);

        javax.xml.rpc.holders.StringHolder ioarg1 = new javax.xml.rpc.holders.StringHolder("ioarg1");
        javax.xml.rpc.holders.StringHolder ioarg2 = new javax.xml.rpc.holders.StringHolder("ioarg2");
        javax.xml.rpc.holders.StringHolder ioarg3 = new javax.xml.rpc.holders.StringHolder("ioarg3");
        javax.xml.rpc.holders.StringHolder ioarg4 = new javax.xml.rpc.holders.StringHolder("ioarg4");
        binding.helloInOut(ioarg1, ioarg2, ioarg3, ioarg4, "onlyInput");
        assertEquals(ioarg1.value, "out1");
        assertEquals(ioarg2.value, "out2");
        assertEquals(ioarg3.value, "out3");
        assertEquals(ioarg4.value, "out4");
    
public voidtest7WrappedInOutEchoPhone()

        test.wsdl.wrapped_inout.WrappedInOutInterface binding;
        try {
            binding = new test.wsdl.wrapped_inout.WrappedInOutLocator().getWrappedInOut();
        }
        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.wsdl.wrapped_inout.Phone value = null;
        test.wsdl.wrapped_inout.Phone in = new test.wsdl.wrapped_inout.Phone();
        in.setAreaCode("503");
        in.setPrefix("281");
        in.setNumber("0816");
        value = binding.echoPhone(in);
        assertNotNull(value);
        assertEquals(value, in);