You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/12/27 20:28:41 UTC

svn commit: r1896456 [8/14] - in /xmlbeans/branches/gradle-build: ./ gradle/ gradle/wrapper/ samples/ samples/AbstractTypes/ samples/Any/ samples/DateTime/ samples/MixedContent/ samples/OrderMatters/ samples/SampleTemplate/ samples/SchemaEnum/ samples/...

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementById02.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementById02.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementById02.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementById02.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,63 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The "getElementById(elementId)" method for a
+ * Document should return null if elementId does not identify any
+ * elements in this document.
+ * <p>
+ * Invoke method getElementById(elementId) on this document
+ * with elementId equals "Cancun". Method should return null.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBId">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBId</a>
+ */
+public class getElementById02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        doc = load("staffNS", false);
+        element = doc.getElementById("Cancun");
+        assertNull("throw_Null", element);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementById02";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS01.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS01.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS01.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS01.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,71 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method for a
+ * Document should return a new NodeList of all Elements that have a namespace
+ * when local name is specified as ' '.
+ * <p>
+ * Invoke method getElementsByTagNameNS(namespaceURI,localName) on this document
+ * with namespaceURI and localName as " ".
+ * Method should return a new NodeList of 37 elements.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+
+/**
+ *
+ */
+
+public class getElementsByTagNameNS01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String namespaceURI = "*";
+        String localName = "*";
+        Document doc;
+        NodeList newList;
+        doc = load("staffNS", false);
+        newList = doc.getElementsByTagNameNS(namespaceURI, localName);
+
+        //Yana: claim is 37, I counted 36
+        assertSize("throw_Size", 36, newList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS01";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS02.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS02.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS02.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS02.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,75 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method for a
+ * Document should return a new NodeList of all Elements with a given
+ * localName and namespaceURI in the order they were encountered in a preorder
+ * traversal of the document tree.
+ * <p>
+ * Invoke method getElementsByTagNameNS(namespaceURI,localName) on this document
+ * with namespaceURI being " " and localName is "employee".
+ * Method should return a new NodeList containing five Elements.
+ * Retrieve the FOURTH element whose name should be "emp:employee".
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+public class getElementsByTagNameNS02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList newList;
+        Element newElement;
+        String prefix;
+        String lname;
+        doc = load("staffNS", false);
+        newList = doc.getElementsByTagNameNS("*", "employee");
+        assertSize("employeeCount", 5, newList);
+        newElement = (Element) newList.item(3);
+        prefix = newElement.getPrefix();
+        assertEquals("prefix", "emp", prefix);
+        lname = newElement.getLocalName();
+        assertEquals("lname", "employee", lname);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS02";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS03.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS03.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS03.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS03.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,91 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * Create a NodeList of all the descendant elements
+ * using the "http://www.nist.gov" as the namespaceURI and the special value " " as the
+ * localName.
+ * The method should return a NodeList of elements that have "http://www.nist.gov
+ * as a namespace URI.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+public class getElementsByTagNameNS03 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Node child;
+        String childName;
+        java.util.List result = new java.util.ArrayList();
+
+        java.util.List expectedResult = new java.util.ArrayList();
+        expectedResult.add("employee");
+        expectedResult.add("employeeId");
+        expectedResult.add("name");
+        expectedResult.add("position");
+        expectedResult.add("salary");
+        expectedResult.add("gender");
+        expectedResult.add("address");
+        expectedResult.add("emp:employee");
+        expectedResult.add("emp:employeeId");
+        expectedResult.add("emp:position");
+        expectedResult.add("emp:salary");
+        expectedResult.add("emp:gender");
+        expectedResult.add("emp:address");
+        expectedResult.add("address");
+
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS("http://www.nist.gov", "*");
+        for (int indexd401e88 = 0; indexd401e88 < elementList.getLength(); indexd401e88++) {
+            child = elementList.item(indexd401e88);
+            childName = child.getNodeName();
+            result.add(childName);
+        }
+        assertEquals("nodeNames", expectedResult, result);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS03";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS04.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS04.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS04.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS04.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,82 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * Create a NodeList of all the descendant elements
+ * using the special value " " as the namespaceURI and "address" as the
+ * localName.
+ * The method should return a NodeList of Elements that have
+ * "address" as the local name.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+public class getElementsByTagNameNS04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Node child;
+        String childName;
+        java.util.List result = new java.util.ArrayList();
+
+        java.util.List expectedResult = new java.util.ArrayList();
+        expectedResult.add("address");
+        expectedResult.add("address");
+        expectedResult.add("address");
+        expectedResult.add("emp:address");
+        expectedResult.add("address");
+
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS("*", "address");
+        for (int indexd402e59 = 0; indexd402e59 < elementList.getLength(); indexd402e59++) {
+            child = elementList.item(indexd402e59);
+            childName = child.getNodeName();
+            result.add(childName);
+        }
+        assertEquals("nodeNames", expectedResult, result);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS04";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS05.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS05.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS05.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS05.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,66 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * <p>
+ * Create a NodeList of all the descendant elements
+ * using the "http://www.nist.gov" as the namespaceURI and "nomatch" as the
+ * localName.
+ * The method should return a NodeList whose length is
+ * "0".
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+public class getElementsByTagNameNS05 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String namespaceURI = "http://www.nist.gov";
+        String localName = "nomatch";
+        Document doc;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS(namespaceURI, localName);
+        assertSize("throw_Size", 0, elementList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS05";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS06.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS06.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS06.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS06.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,64 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * <p>
+ * Create a NodeList of all the descendant elements
+ * using the "http://www.nomatch.com" as the namespaceURI and "address" as the
+ * localName.
+ * The method should return a NodeList whose length is
+ * "0".
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+public class getElementsByTagNameNS06 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS("http://www.nomatch.com", "address");
+        assertSize("matchSize", 0, elementList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS06";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS07.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS07.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS07.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS07.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,64 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * <p>
+ * Create a NodeList of all the descendant elements
+ * using the string "http://www.nist.gov" as the namespaceURI and "address" as the
+ * localName.
+ * The method should return a NodeList whose length is
+ * "3".
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS</a>
+ */
+public class getElementsByTagNameNS07 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS("http://www.nist.gov", "address");
+        assertSize("addresses", 3, elementList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS07";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,73 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * Element.getElementsByTagNameNS('*','*') should return all child
+ * elements.  There is some contention on whether this should match
+ * unqualified elements, this test reflects the interpretation that
+ * '*' should match elements in all namespaces and unqualified elements.
+ * Derived from getElementsByTagNameNS01 which tests similar functionality
+ * on the Document interface.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+
+
+/**
+ *
+ */
+public class getElementsByTagNameNS08 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element docElem;
+        NodeList newList;
+        doc = load("staffNS", false);
+        System.out.println(doc.getImplementation());
+        docElem = doc.getDocumentElement();
+        newList = docElem.getElementsByTagNameNS("*", "*");
+
+        // 35, without the document element which we used to get the elements
+        System.out.println(docElem.getOwnerDocument().getImplementation());
+        assertSize("listSize" + docElem.getOwnerDocument().getImplementation(), 35, newList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS08";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS09.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS09.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS09.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS09.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,78 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method for a
+ * Element should return a new NodeList of all descendant Elements with a given
+ * localName and namespaceURI in the order they were encountered in a preorder
+ * traversal of the document tree.
+ * Invoke method getElementsByTagNameNS(namespaceURI,localName) on the document
+ * element with namespaceURI being "*" and localName is "employee".
+ * Method should return a new NodeList containing five Elements.
+ * Retrieve the FOURTH element whose name should be "emp:employee".
+ * Derived from getElementsByTagNameNS02 and reflects its interpretation
+ * that namespace="*" matches namespace unqualified tagnames.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+public class getElementsByTagNameNS09 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList newList;
+        Element newElement;
+        String prefix;
+        String lname;
+        Element docElem;
+        doc = load("staffNS", false);
+        docElem = doc.getDocumentElement();
+        newList = docElem.getElementsByTagNameNS("*", "employee");
+        assertSize("employeeCount", 5, newList);
+        newElement = (Element) newList.item(3);
+        prefix = newElement.getPrefix();
+        assertEquals("prefix", "emp", prefix);
+        lname = newElement.getLocalName();
+        assertEquals("lname", "employee", lname);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS09";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS10.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS10.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS10.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS10.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,95 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * Create a NodeList of all the descendant elements of the document element
+ * using the "http://www.nist.gov" as the namespaceURI and the special value "*" as the
+ * localName.
+ * The method should return a NodeList of elements that have "http://www.nist.gov
+ * as a namespace URI.
+ * Derived from getElementsByTagNameNS03
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+public class getElementsByTagNameNS10 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element docElem;
+        NodeList elementList;
+        Node child;
+        String childName;
+        java.util.List result = new java.util.ArrayList();
+
+        java.util.List expectedResult = new java.util.ArrayList();
+        expectedResult.add("employee");
+        expectedResult.add("employeeId");
+        expectedResult.add("name");
+        expectedResult.add("position");
+        expectedResult.add("salary");
+        expectedResult.add("gender");
+        expectedResult.add("address");
+        expectedResult.add("emp:employee");
+        expectedResult.add("emp:employeeId");
+        expectedResult.add("emp:position");
+        expectedResult.add("emp:salary");
+        expectedResult.add("emp:gender");
+        expectedResult.add("emp:address");
+        expectedResult.add("address");
+
+        doc = load("staffNS", false);
+        docElem = doc.getDocumentElement();
+        elementList = docElem.getElementsByTagNameNS("http://www.nist.gov", "*");
+        for (int indexd408e92 = 0; indexd408e92 < elementList.getLength(); indexd408e92++) {
+            child = elementList.item(indexd408e92);
+            childName = child.getNodeName();
+            result.add(childName);
+        }
+        assertEquals("nodeNames", expectedResult, result);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS10";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS11.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS11.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS11.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS11.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,85 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * Create a NodeList of all the descendant elements
+ * using the special value "*" as the namespaceURI and "address" as the
+ * localName.
+ * The method should return a NodeList of Elements that have
+ * "address" as the local name.
+ * This test is derived from getElementsByTagNameNS04
+ * * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+public class getElementsByTagNameNS11 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element docElem;
+        NodeList elementList;
+        Node child;
+        String childName;
+        java.util.List result = new java.util.ArrayList();
+
+        java.util.List expectedResult = new java.util.ArrayList();
+        expectedResult.add("address");
+        expectedResult.add("address");
+        expectedResult.add("address");
+        expectedResult.add("emp:address");
+        expectedResult.add("address");
+
+        doc = load("staffNS", false);
+        docElem = doc.getDocumentElement();
+        elementList = docElem.getElementsByTagNameNS("*", "address");
+        for (int indexd409e60 = 0; indexd409e60 < elementList.getLength(); indexd409e60++) {
+            child = elementList.item(indexd409e60);
+            childName = child.getNodeName();
+            result.add(childName);
+        }
+        assertEquals("nodeNames", expectedResult, result);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS11";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS12.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS12.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS12.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS12.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,65 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * Create a NodeList of all the descendant elements
+ * using the "http://www.nist.gov" as the namespaceURI and "nomatch" as the
+ * localName.
+ * The method should return a NodeList whose length is "0".
+ * This test is a modification of getElementsByTagName05
+ * * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+public class getElementsByTagNameNS12 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element docElem;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        docElem = doc.getDocumentElement();
+        elementList = docElem.getElementsByTagNameNS("http://www.nist.gov", "nomatch");
+        assertSize("size", 0, elementList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS12";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS13.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS13.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS13.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS13.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,65 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * Create a NodeList of all the descendant elements
+ * using the "http://www.nomatch.com" as the namespaceURI and "address" as the
+ * localName.
+ * The method should return a NodeList whose length is
+ * "0".
+ * * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+public class getElementsByTagNameNS13 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element docElem;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        docElem = doc.getDocumentElement();
+        elementList = docElem.getElementsByTagNameNS("http://www.nomatch.com", "address");
+        assertSize("matchSize", 0, elementList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS13";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS14.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS14.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS14.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS14.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,66 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
+ * of all descendant Elements with a given local name and namespace URI in the
+ * order in which they are encountered in a preorder traversal of this Element tree.
+ * <p>
+ * Create a NodeList of all the descendant elements
+ * using the string "http://www.nist.gov" as the namespaceURI and "address" as the
+ * localName.
+ * The method should return a NodeList whose length is
+ * "3".
+ * * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D</a>
+ */
+public class getElementsByTagNameNS14 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element docElem;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        docElem = doc.getDocumentElement();
+        elementList = docElem.getElementsByTagNameNS("http://www.nist.gov", "address");
+        assertSize("addresses", 3, elementList);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getElementsByTagNameNS14";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS01.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS01.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS01.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS01.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,72 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "getNamedItemNS(namespaceURI,localName)" method for a
+ * NamedNodeMap should return a node specified by localName and namespaceURI
+ * <p>
+ * Retrieve a list of elements with tag name "address".
+ * Access the second element from the list and get its attributes.
+ * Try to retrieve the attribute node with local name "domestic"
+ * and namespace uri "http://www.usa.com" with
+ * method getNamedItemNS(namespaceURI,localName).
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-F68D095">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-F68D095</a>
+ */
+public class getNamedItemNS01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Node testEmployee;
+        NamedNodeMap attributes;
+        Attr domesticAttr;
+        String attrName;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("address");
+        testEmployee = elementList.item(1);
+        attributes = testEmployee.getAttributes();
+        domesticAttr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic");
+        attrName = domesticAttr.getNodeName();
+        assertEquals("attrName", "dmstc:domestic", attrName);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getNamedItemNS01";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS02.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS02.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS02.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS02.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,74 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The "getNamedItemNS(namespaceURI,localName)" method for a
+ * NamedNodeMap should return null
+ * if parameters do not identify any node in this map.
+ * <p>
+ * Retrieve a list of elements with tag name "address".
+ * Access the second element from the list and get its attributes.
+ * Try to retrieve an attribute node with local name "domest"
+ * and namespace uri "http://www.usa.com" with
+ * method getNamedItemNS(namespaceURI,localName).
+ * This should return null because "domest" does not match any local names in this map.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getNamedItemNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getNamedItemNS</a>
+ */
+public class getNamedItemNS02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String namespaceURI = "http://www.usa.com";
+        String localName = "domest";
+        Document doc;
+        NodeList elementList;
+        Node testEmployee;
+        NamedNodeMap attributes;
+        Attr newAttr;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("address");
+        testEmployee = elementList.item(1);
+        attributes = testEmployee.getAttributes();
+        newAttr = (Attr) attributes.getNamedItemNS(namespaceURI, localName);
+        assertNull("throw_Null", newAttr);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getNamedItemNS02";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS03.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS03.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS03.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS03.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,70 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2003 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.dom.Entity;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * Entity nodes are not namespaced and should not be retrievable using
+ * getNamedItemNS.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getNamedItemNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getNamedItemNS</a>
+ * @see <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=259">http://www.w3.org/Bugs/Public/show_bug.cgi?id=259</a>
+ */
+public class getNamedItemNS03 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        NamedNodeMap entities;
+        Entity entity;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        docType = doc.getDoctype();
+        entities = docType.getEntities();
+        entity = (Entity) entities.getNamedItemNS(nullNS, "ent1");
+        assertNull("entityNull", entity);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getNamedItemNS03";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS04.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS04.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS04.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/getNamedItemNS04.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,70 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2003 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Notation;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * Notation nodes are not namespaced and should not be retrievable using
+ * getNamedItemNS.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getNamedItemNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getNamedItemNS</a>
+ * @see <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=259">http://www.w3.org/Bugs/Public/show_bug.cgi?id=259</a>
+ */
+public class getNamedItemNS04 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        NamedNodeMap notations;
+        Notation notation;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        docType = doc.getDoctype();
+        notations = docType.getNotations();
+        notation = (Notation) notations.getNamedItemNS(nullNS, "notation1");
+        assertNull("notationNull", notation);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/getNamedItemNS04";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute01.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute01.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute01.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute01.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,67 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "hasAttribute()" method for an Element should
+ * return true if the element has an attribute with the given name.
+ * <p>
+ * Retrieve the first "address" element and the "hasAttribute()" method
+ * should return false since the element does not have a default value.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr</a>
+ */
+public class hasAttribute01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staff", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(4);
+        state = testNode.hasAttribute("domestic");
+        assertFalse("throw_False", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttribute01";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute02.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute02.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute02.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute02.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,69 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001-2003 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "hasAttribute()" method for an Element should
+ * return true if the element has an attribute with the given name.
+ * Retrieve the first "address" element and the "hasAttribute()" method
+ * should return true since the attribute "street" has a default value.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr</a>
+ * @see <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=238">http://www.w3.org/Bugs/Public/show_bug.cgi?id=238</a>
+ */
+public class hasAttribute02 extends DOMTestCase {
+    @Test
+    @Ignore("default attribute not supported")
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staff", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttribute("street");
+        assertTrue("throw_True", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttribute02";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute03.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute03.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute03.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute03.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,67 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "hasAttribute()" method for an Element should
+ * return false if the element does not have an attribute with the given name.
+ * <p>
+ * Retrieve the first "address" element and the "hasAttribute()" method
+ * should return false since the element does not have "nomatch" as an attribute.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr</a>
+ */
+public class hasAttribute03 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staff", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttribute("nomatch");
+        assertFalse("throw_False", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttribute03";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute04.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute04.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute04.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttribute04.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,67 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001-2003 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "hasAttribute()" method for an Element should
+ * return true if the element has an attribute with the given name.
+ * Retrieve the first "address" element and the "hasAttribute()" method
+ * should return true since the element has "domestic" as an attribute.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttr</a>
+ * @see <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=238">http://www.w3.org/Bugs/Public/show_bug.cgi?id=238</a>
+ */
+public class hasAttribute04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttribute("dmstc:domestic");
+        assertTrue("hasDomesticAttr", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttribute04";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS01.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS01.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS01.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS01.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,71 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "hasAttributeNS()" method for an Element should
+ * return false if the element does not have an attribute with the given local name
+ * and/or a namespace URI specified on this element or does not have a default value.
+ * <p>
+ * Retrieve the first "address" element and the "hasAttributeNS()" method
+ * should return false since the element has "nomatch" as the local name
+ * and "http://www.usa.com" as the namespace URI.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS</a>
+ */
+public class hasAttributeNS01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String localName = "nomatch";
+        String namespaceURI = "http://www.usa.com";
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttributeNS(namespaceURI, localName);
+        assertFalse("throw_False", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttributeNS01";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS02.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS02.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS02.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS02.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,71 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "hasAttributeNS()" method for an Element should
+ * return false if the element does not have an attribute with the given local name
+ * and/or namespace URI specified on this element or does not have a default value.
+ * <p>
+ * Retrieve the first "address" element and the "hasAttributeNS()" method
+ * should return false since the element has "domestic" as the local name
+ * and "http://www.nomatch.com" as the namespace URI.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS</a>
+ */
+public class hasAttributeNS02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String localName = "domestic";
+        String namespaceURI = "http://www.nomatch.com";
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttributeNS(namespaceURI, localName);
+        assertFalse("throw_False", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttributeNS02";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS03.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS03.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS03.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS03.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,71 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "hasAttributeNS()" method for an Element should
+ * return false if the element does not have an attribute with the given local name
+ * and/or namespace URI specified on this element or does not have a default value.
+ * <p>
+ * Retrieve the first "emp:address" element.
+ * The boolean value returned by the "hasAttributeNS()" should be false
+ * since the attribute does not have a default value.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS</a>
+ */
+public class hasAttributeNS03 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String localName = "blank";
+        String namespaceURI = "http://www.nist.gov";
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("emp:address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttributeNS(namespaceURI, localName);
+        assertFalse("throw_False", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttributeNS03";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS04.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS04.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS04.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS04.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,73 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Ignore;
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "hasAttributeNS()" method for an Element should
+ * return true if the attribute with the given local name
+ * and namespace URI has a default value.
+ * <p>
+ * Retrieve the first "emp:address" element.
+ * The boolean value returned by the "hasAttributeNS()" should be true
+ * since the attribute has a default value.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS</a>
+ */
+public class hasAttributeNS04 extends DOMTestCase {
+    @Test
+    @Ignore("district is a spec attr")
+    public void testRun() throws Throwable {
+        String localName = "district";
+        String namespaceURI = "http://www.nist.gov";
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("emp:address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttributeNS(namespaceURI, localName);
+        assertTrue("hasAttribute", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttributeNS04";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS05.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS05.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS05.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributeNS05.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,71 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "hasAttributeNS()" method for an Element should
+ * return true if the element has an attribute with the given local name
+ * and the namespace URI is specified on this element or has a default value.
+ * <p>
+ * Retrieve the first "address" element and the "hasAttributeNS()" method
+ * should return true since the element has "domestic" as the local name
+ * and "http://www.usa.com" as the namespace URI.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElHasAttrNS</a>
+ */
+public class hasAttributeNS05 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        String localName = "domestic";
+        String namespaceURI = "http://www.usa.com";
+        Document doc;
+        NodeList elementList;
+        Element testNode;
+        boolean state;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("address");
+        testNode = (Element) elementList.item(0);
+        state = testNode.hasAttributeNS(namespaceURI, localName);
+        assertTrue("hasAttribute", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttributeNS05";
+    }
+
+}

Added: xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributes01.java
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributes01.java?rev=1896456&view=auto
==============================================================================
--- xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributes01.java (added)
+++ xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/hasAttributes01.java Mon Dec 27 20:28:38 2021
@@ -0,0 +1,67 @@
+/*
+This Java source file was generated by test-to-java.xsl
+and is a derived work from the source document.
+The source document contained the following notice:
+
+
+
+Copyright (c) 2001 World Wide Web Consortium,
+(Massachusetts Institute of Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University).  All
+Rights Reserved.  This program is distributed under the W3C's Software
+Intellectual Property License.  This program is distributed in the
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.
+
+See W3C License http://www.w3.org/Consortium/Legal/ for more details.
+
+
+*/
+
+package org.w3c.domts.level2.core;
+
+
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "hasAttributes()" method for a node should
+ * return false if the node does not have an attribute.
+ * <p>
+ * Retrieve the first "name" node and invoke the "hasAttributes()" method.
+ * The method should return false since the node does not have an attribute.
+ *
+ * @see <a href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeHasAttrs">http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeHasAttrs</a>
+ */
+public class hasAttributes01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList addrList;
+        Node addrNode;
+        boolean state;
+        doc = load("staff", false);
+        addrList = doc.getElementsByTagName("name");
+        addrNode = addrList.item(0);
+        state = addrNode.hasAttributes();
+        assertFalse("throw_False", state);
+
+    }
+
+    /**
+     * Gets URI that identifies the test
+     *
+     * @return uri identifier of test
+     */
+    public String getTargetURI() {
+        return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/hasAttributes01";
+    }
+
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org