diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-30 04:14:28 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-30 04:14:28 +0000 |
commit | f05c9422b3e5212d88384c141a0825c15b94a795 (patch) | |
tree | 14512d81af7117809f13780af2b49d3a87803749 /java/sca/modules/interface-wsdl-xml | |
parent | 3d7c9633329afd0e0f8648ceb74584bb0872fdca (diff) |
Use the XMLInputFactory from the registry instead of a local one
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@700332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/interface-wsdl-xml')
-rw-r--r-- | java/sca/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/XMLDocumentHelperTestCase.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sca/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/XMLDocumentHelperTestCase.java b/java/sca/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/XMLDocumentHelperTestCase.java index eb276a1908..105b3da7fa 100644 --- a/java/sca/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/XMLDocumentHelperTestCase.java +++ b/java/sca/modules/interface-wsdl-xml/src/test/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/XMLDocumentHelperTestCase.java @@ -21,10 +21,11 @@ package org.apache.tuscany.sca.interfacedef.wsdl.xml; import java.net.URL; +import javax.xml.stream.XMLInputFactory; + import junit.framework.Assert; import org.apache.tuscany.sca.xsd.xml.XMLDocumentHelper; - import org.junit.Before; import org.junit.Test; @@ -45,7 +46,7 @@ public class XMLDocumentHelperTestCase { @Test public void testReadTNS() throws Exception { - String tns = XMLDocumentHelper.readTargetNamespace(wsdl, XMLDocumentHelper.WSDL11, true, "targetNamespace"); + String tns = XMLDocumentHelper.readTargetNamespace(wsdl, XMLDocumentHelper.WSDL11, true, "targetNamespace", XMLInputFactory.newInstance()); Assert.assertEquals("http://helloworld", tns); } |