FileDocCategorySizeDatePackage
PlanWSTestCase.javaAPI DocApache Axis 1.41717Sat Apr 22 18:57:28 BST 2006test.wsdl.extension

PlanWSTestCase

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

Fields Summary
Constructors Summary
public PlanWSTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1PlanWSSoapGetPlan()

        test.wsdl.extension.PlanWSSoapStub binding;
        try {
            binding = (test.wsdl.extension.PlanWSSoapStub)
                          new test.wsdl.extension.PlanWSLocator().getPlanWSSoap();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        test.wsdl.extension.Plan value = null;
        value = binding.getPlan();
        // TBD - validate results
        
        assertEquals(value.getDisposition().getCode(),"CODE #1");
        assertEquals(value.getDisposition().getDescription(),"CODE #1 Description");
    
public voidtestPlanWSSoapWSDL()

        javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
        java.net.URL url = new java.net.URL(new test.wsdl.extension.PlanWSLocator().getPlanWSSoapAddress() + "?WSDL");
        javax.xml.rpc.Service service = serviceFactory.createService(url, new test.wsdl.extension.PlanWSLocator().getServiceName());
        assertTrue(service != null);