FileDocCategorySizeDatePackage
WarehouseServiceTestCase.javaAPI DocApache Axis 1.45932Sat Apr 22 18:56:52 BST 2006org.apache.axis.wsi.scm.warehouse

WarehouseServiceTestCase

public class WarehouseServiceTestCase extends TestCase
WarehouseServiceTestCase.java This file was auto-generated from WSDL by the Apache Axis 1.2alpha Jan 15, 2004 (11:28:11 EST) WSDL2Java emitter.

Fields Summary
Constructors Summary
public WarehouseServiceTestCase(String name)

        super(name);
    
Methods Summary
public voidtest1WarehouseBPortShipGoods()

        org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding;
        try {
            binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub)
                          new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseBPort();
        }
        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
        try {
            org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null;
            value = binding.shipGoods(new org.apache.axis.wsi.scm.warehouse.ItemList(), new org.apache.axis.types.NormalizedString(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
        }
        catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
            throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
        }
            // TBD - validate results
    
public voidtest2WarehouseCPortShipGoods()

        org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding;
        try {
            binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub)
                          new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseCPort();
        }
        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
        try {
            org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null;
            value = binding.shipGoods(new org.apache.axis.wsi.scm.warehouse.ItemList(), new org.apache.axis.types.NormalizedString(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
        }
        catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
            throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
        }
            // TBD - validate results
    
public voidtest3WarehouseAPortShipGoods()

        org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding;
        try {
            binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub)
                          new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseAPort();
        }
        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
        try {
            org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null;
            value = binding.shipGoods(new org.apache.axis.wsi.scm.warehouse.ItemList(), new org.apache.axis.types.NormalizedString(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
        }
        catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) {
            throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1);
        }
            // TBD - validate results