Author: veithen
Date: Sun Nov 6 14:43:50 2011
New Revision: 1198383
URL: http://svn.apache.org/viewvc?rev=1198383&view=rev
Log:
Removed redundant test case. It is already covered by null-namespace.xml.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java?rev=1198383&r1=1198382&r2=1198383&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/om/NamespaceTest.java
Sun Nov 6 14:43:50 2011
@@ -27,9 +27,7 @@ import org.xml.sax.SAXException;
import javax.xml.namespace.QName;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
-import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
@@ -116,18 +114,6 @@ public class NamespaceTest extends XMLTe
assertTrue(documentElement.toStringWithConsume().indexOf("ns2:ChildElement") >
-1);
}
- public void testNamespaceProblem4() throws Exception {
- String xml =
- "<getCreditScoreResponse
xmlns=\"http://www.example.org/creditscore/doclitwrapped/\"><score
xmlns=\"\">750</score></getCreditScoreResponse>";
- XMLStreamReader parser = StAXUtils.createXMLStreamReader(
- new ByteArrayInputStream(xml.getBytes()));
- OMXMLParserWrapper builder =
-
OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getOMFactory(),
parser);
- OMElement root = builder.getDocumentElement();
- String actualXML = root.toString();
- assertTrue(actualXML.indexOf("xmlns=\"\"") != -1);
- }
-
public void testNamespaceProblem5() {
String xml =
"<soapenv:Envelope
xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Header
/><soapenv:Body><ns1:createAccountRequest
xmlns:ns1=\"http://www.wso2.com/types\"><clientinfo
xmlns=\"http://www.wso2.com/types\"><name>bob</name><ssn>123456789</ssn></clientinfo><password
xmlns=\"\">passwd</password></ns1:createAccountRequest></soapenv:Body></soapenv:Envelope>";