1 8 9 package test.wsdl.refattr; 10 11 import org.apache.axis.utils.ClassUtils; 12 13 public class RefTestServiceTestCase extends junit.framework.TestCase { 14 public RefTestServiceTestCase(String name) { 15 super(name); 16 } 17 18 public void testRefTest() { 19 test.wsdl.refattr.RefTest binding; 20 try { 21 binding = new RefTestServiceLocator().getRefTest(); 22 } 23 catch (javax.xml.rpc.ServiceException jre) { 24 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre ); 25 } 26 27 Info info = new Info(); 30 Phone phone = new Phone(); 31 Enum enum = Enum.fromValue("one"); 32 info.setEnum(enum); 33 Forward forward = new Forward(); 34 NoMangle noMangle = new NoMangle(); 35 36 Mangle_Type mangle_type = new Mangle_Type(); 38 Mangle_ElemType mangle_elem_type = new Mangle_ElemType(); 39 try { 40 Class cls = ClassUtils.forName("test.wsdl.refattr.Mangle"); 41 assertTrue("Found unmangled class test.wsdl.refattr.Mangle", false); 42 } catch (Exception e) { 43 } 45 46 assertTrue("binding is null", binding != null); 47 try { 48 binding.test(info); 49 } catch (java.rmi.RemoteException re) { 50 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re ); 51 } 52 } 53 } 54 55 | Popular Tags |