1 17 package org.apache.geronimo.axis.builder; 18 19 import junit.framework.TestCase; 20 import org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument; 21 22 25 public class WSDLMapTest extends TestCase { 26 27 public void testOutputStringHasXMLDeclaration() throws Exception { 28 SchemaDocument schemaDocument = SchemaDocument.Factory.newInstance(); 29 schemaDocument.addNewSchema(); 30 String output = AxisServiceBuilder.xmlObjectToString(schemaDocument); 31 assertTrue(output.startsWith("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")); 32 } 33 34 } | Popular Tags |