1 7 8 package org.apache.axis.wsi.scm.warehouse; 9 10 public class WarehouseServiceTestCase extends junit.framework.TestCase { 11 public WarehouseServiceTestCase(java.lang.String name) { 12 super(name); 13 } 14 15 23 24 public void test1WarehouseBPortShipGoods() throws Exception { 25 org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding; 26 try { 27 binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub) 28 new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseBPort(); 29 } 30 catch (javax.xml.rpc.ServiceException jre) { 31 if(jre.getLinkedCause()!=null) 32 jre.getLinkedCause().printStackTrace(); 33 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 34 } 35 assertNotNull("binding is null", binding); 36 37 binding.setTimeout(60000); 39 40 try { 42 org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null; 43 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()); 44 } 45 catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) { 46 throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1); 47 } 48 } 50 51 59 60 public void test2WarehouseCPortShipGoods() throws Exception { 61 org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding; 62 try { 63 binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub) 64 new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseCPort(); 65 } 66 catch (javax.xml.rpc.ServiceException jre) { 67 if(jre.getLinkedCause()!=null) 68 jre.getLinkedCause().printStackTrace(); 69 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 70 } 71 assertNotNull("binding is null", binding); 72 73 binding.setTimeout(60000); 75 76 try { 78 org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null; 79 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()); 80 } 81 catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) { 82 throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1); 83 } 84 } 86 87 95 96 97 public void test3WarehouseAPortShipGoods() throws Exception { 98 org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub binding; 99 try { 100 binding = (org.apache.axis.wsi.scm.warehouse.WarehouseSoapBindingStub) 101 new org.apache.axis.wsi.scm.warehouse.WarehouseServiceLocator().getWarehouseAPort(); 102 } 103 catch (javax.xml.rpc.ServiceException jre) { 104 if(jre.getLinkedCause()!=null) 105 jre.getLinkedCause().printStackTrace(); 106 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); 107 } 108 assertNotNull("binding is null", binding); 109 110 binding.setTimeout(60000); 112 113 try { 115 org.apache.axis.wsi.scm.warehouse.ItemShippingStatusList value = null; 116 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()); 117 } 118 catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e1) { 119 throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e1); 120 } 121 } 123 124 } 125 | Popular Tags |