FileDocCategorySizeDatePackage
Import1TestCase.javaAPI DocApache Axis 1.43363Sat Apr 22 18:57:28 BST 2006test.wsdl.interop3.import1

Import1TestCase

public class Import1TestCase extends TestCase

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


       
        super(name);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        if (args.length == 1) {
            try {
                url = new URL(args[0]);
            } catch (Exception e) {
            }
        }

        junit.textui.TestRunner.run(new junit.framework.TestSuite(Import1TestCase.class));
    
public voidtestStep3()

        SoapInteropImport1PortType binding;
        try {
            if (url == null) {
                binding = new Import1Locator().getSoapInteropImport1Port();
            } else {
                binding = new Import1Locator().getSoapInteropImport1Port(url);
            }
        }
        catch (javax.xml.rpc.ServiceException jre) {
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            String value = "import1 test string";
            String result = binding.echoString(value);
            assertEquals("Strings didn't match", value, result);
        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }