1 16 package test.typedesc; 17 18 import java.util.ArrayList ; 19 import java.util.Locale ; 20 21 import javax.wsdl.Definition; 22 import javax.wsdl.factory.WSDLFactory; 23 24 import org.apache.axis.description.JavaServiceDesc; 25 import org.apache.axis.description.ServiceDesc; 26 import org.apache.axis.encoding.DefaultTypeMappingImpl; 27 import org.apache.axis.encoding.TypeMapping; 28 import org.apache.axis.wsdl.fromJava.Namespaces; 29 import org.apache.axis.wsdl.fromJava.Types; 30 31 import junit.framework.TestCase; 32 33 public class TestTypesNonBeanCompatible extends TestCase { 34 35 private Types types; 36 37 protected void setUp() throws Exception { 38 39 Definition def = WSDLFactory.newInstance().newDefinition(); 40 TypeMapping tm = DefaultTypeMappingImpl.getSingletonDelegate(); 41 Namespaces namespaces = new Namespaces(); 42 ServiceDesc serviceDesc = new JavaServiceDesc(); 43 44 types = new Types(def, tm, tm, namespaces, "any:name.space", new ArrayList (), serviceDesc); 45 } 46 47 75 76 public void testWriteObjectType() throws Exception { 77 78 String schema = types.writeType(Object .class); 79 assertNotNull("Schema should NOT be null for Object class", schema); 80 81 schema = types.writeType(Object [].class); 82 assertNotNull("Schema should NOT be be null for Object[] class", schema); 83 } 84 85 } 86 | Popular Tags |