1 7 8 package org.apache.axis.wsi.scm.configurator; 9 10 public class ConfiguratorServiceTestCase extends junit.framework.TestCase { 11 public ConfiguratorServiceTestCase(java.lang.String name) { 12 super(name); 13 } 14 15 23 24 public void test1ConfiguratorPortGetConfigurationOptions() throws Exception { 25 org.apache.axis.wsi.scm.configurator.ConfiguratorBindingStub binding; 26 try { 27 binding = (org.apache.axis.wsi.scm.configurator.ConfiguratorBindingStub) 28 new org.apache.axis.wsi.scm.configurator.ConfiguratorServiceLocator().getConfiguratorPort(); 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.configurator.ConfigOptionsType value = null; 43 value = binding.getConfigurationOptions(true); 44 } 45 catch (org.apache.axis.wsi.scm.configurator.ConfiguratorFailedFault e1) { 46 throw new junit.framework.AssertionFailedError("configuratorFailedFault Exception caught: " + e1); 47 } 48 } 50 51 } 52 | Popular Tags |