FileDocCategorySizeDatePackage
EmptySATestCase.javaAPI DocApache Axis 1.41606Sat Apr 22 18:57:28 BST 2006test.wsdl.interop3.emptysa

EmptySATestCase

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

Fields Summary
public static URL
url
Constructors Summary
public EmptySATestCase(String name)

        super(name);
        if (url == null) {
            url = new URL(new EmptySALocator().getSoapInteropEmptySAPortAddress());
        }
        
    
Methods Summary
public static voidmain(java.lang.String[] args)

    
           
        if (args.length == 1) {
            url = new URL(args[0]);
        }
        junit.textui.TestRunner.run(new junit.framework.TestSuite(EmptySATestCase.class));
    
public voidtest1SoapInteropEmptySAPortEchoString()

        test.wsdl.interop3.emptysa.SoapInteropEmptySAPortType binding;
        try {
            binding = new test.wsdl.interop3.emptysa.EmptySALocator().getSoapInteropEmptySAPort();
        }
        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;
        String expected = "empty SOAP Action";
        value = binding.echoString(expected);
        
        // validate results
        assertEquals(expected, value);