Author: veithen
Date: Sat Jul 5 12:05:04 2014
New Revision: 1608002
URL: http://svn.apache.org/r1608002
Log:
Removed some test cases made redundant by the addition of the W3C DOM test
suite.
Removed:
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/attr/TestLookupNamespaceURI.java
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/text/TestLookupNamespaceURIWithNSDeclInScope.java
Modified:
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/DOMTestSuiteBuilder.java
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestLookupNamespaceURI.java
Modified:
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/DOMTestSuiteBuilder.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/DOMTestSuiteBuilder.java?rev=1608002&r1=1608001&r2=1608002&view=diff
==============================================================================
---
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/DOMTestSuiteBuilder.java
(original)
+++
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/DOMTestSuiteBuilder.java
Sat Jul 5 12:05:04 2014
@@ -71,7 +71,6 @@ public final class DOMTestSuiteBuilder e
addTest(new org.apache.axiom.ts.dom.attr.TestGetChildNodes(dbf));
addTest(new org.apache.axiom.ts.dom.attr.TestGetFirstChild(dbf));
addTest(new
org.apache.axiom.ts.dom.attr.TestGetValueWithMultipleChildren(dbf));
- addTest(new org.apache.axiom.ts.dom.attr.TestLookupNamespaceURI(dbf));
addTest(new
org.apache.axiom.ts.dom.attr.TestLookupNamespaceURIWithoutOwnerElement(dbf));
addTest(new
org.apache.axiom.ts.dom.attr.TestSetPrefixNotNullWithNamespace(dbf));
addTest(new
org.apache.axiom.ts.dom.attr.TestSetPrefixNotNullWithoutNamespace(dbf));
@@ -190,7 +189,6 @@ public final class DOMTestSuiteBuilder e
addTest(new org.apache.axiom.ts.dom.text.TestGetWholeText(dbf));
addTest(new
org.apache.axiom.ts.dom.text.TestGetWholeTextWithCDATASection(dbf));
addTest(new
org.apache.axiom.ts.dom.text.TestGetWholeTextWithComment(dbf));
- addTest(new
org.apache.axiom.ts.dom.text.TestLookupNamespaceURIWithNSDeclInScope(dbf));
addTest(new
org.apache.axiom.ts.dom.text.TestLookupNamespaceURIWithoutParent(dbf));
addTest(new org.apache.axiom.ts.dom.text.TestSetPrefix(dbf));
addTest(new org.apache.axiom.ts.dom.text.TestSplitText(dbf));
Modified:
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestLookupNamespaceURI.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestLookupNamespaceURI.java?rev=1608002&r1=1608001&r2=1608002&view=diff
==============================================================================
---
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestLookupNamespaceURI.java
(original)
+++
webservices/axiom/trunk/testsuites/dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestLookupNamespaceURI.java
Sat Jul 5 12:05:04 2014
@@ -41,10 +41,12 @@ public class TestLookupNamespaceURI exte
Element documentElement = document.createElementNS("urn:test",
"ns:root");
documentElement.setAttributeNS(XMLConstants.XMLNS_ATTRIBUTE_NS_URI,
"xmlns:ns", "urn:test");
document.appendChild(documentElement);
+ // Note: this part is also tested by the W3C test suite (see
nodelookupnamespaceuri02)
assertEquals("urn:test", document.lookupNamespaceURI("ns"));
// The following assertion is important to check that there is no
infinite recursion
// (Document delegates the lookup to its document element, but the
document element must
- // not delegate to its parent if no matching declaration is found)
+ // not delegate to its parent if no matching declaration is found).
+ // This is not tested by the W3C test suite.
assertNull(document.lookupNamespaceURI("p"));
}
}