Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode14.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode14.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode14.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode14.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,86 @@
+/*
+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.DocumentType;
+import org.w3c.dom.ProcessingInstruction;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "importNode(importedNode,deep)" method for a
+ * Document should import the given importedNode into that Document.
+ * The importedNode is of type Processing Instruction.
+ * Create a processing instruction with target as "target1" and data as "data1"
+ * in a different document. Invoke method importNode(importedNode,deep) on 
this document.
+ * Method should return a processing instruction whose target and data match 
the given
+ * parameters. The returned PI should belong to this document whose systemId 
is "staff.dtd".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode";>http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode</a>
+ */
+public class importNode14 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Document aNewDoc;
+        ProcessingInstruction pi;
+        ProcessingInstruction aNode;
+        Document ownerDocument;
+        DocumentType docType;
+        String system;
+        String target;
+        String data;
+        java.util.List result = new java.util.ArrayList();
+
+        doc = load("staffNS", true);
+        aNewDoc = load("staffNS", true);
+        pi = aNewDoc.createProcessingInstruction("target1", "data1");
+        aNode = (ProcessingInstruction) doc.importNode(pi, false);
+        ownerDocument = aNode.getOwnerDocument();
+        //$NOTE:add this if ever implemented
+      /*
+       docType = ownerDocument.getDoctype();
+       system = docType.getSystemId();
+       assertURIEquals("systemId", null, null, null, "staffNS.dtd", null, 
null, null, null, system);
+      */
+        target = aNode.getTarget();
+        assertEquals("piTarget", "target1", target);
+        data = aNode.getData();
+        assertEquals("piData", "data1", data);
+
+    }
+
+    /**
+     * 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/importNode14";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode15.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode15.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode15.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode15.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,83 @@
+/*
+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.DocumentType;
+import org.w3c.dom.Node;
+import org.w3c.dom.Text;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The "importNode(importedNode,deep)" method for a
+ * Document should import the given importedNode into that Document.
+ * The importedNode is of type Text.
+ * Create a text node with value being the string "this is text data" in
+ * a different document.  Invoke method importNode(importedNode,deep) on
+ * this document.  Method should return a text node whose value matches
+ * the above string. The returned node should belong to this document
+ * whose systemId is "staff.dtd"
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode";>http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode</a>
+ */
+public class importNode15 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Document aNewDoc;
+        Text text;
+        Node aNode;
+        Document ownerDocument;
+        DocumentType docType;
+        String system;
+        String value;
+        doc = load("staffNS", true);
+        aNewDoc = load("staffNS", true);
+        text = aNewDoc.createTextNode("this is text data");
+        aNode = doc.importNode(text, false);
+        ownerDocument = aNode.getOwnerDocument();
+        //$NOTE:add this if ever implemented
+   /*
+     docType = ownerDocument.getDoctype();
+      system = docType.getSystemId();
+      assertURIEquals("systemId", null, null, null, "staffNS.dtd", null, null, 
null, null, system);
+   */
+        value = aNode.getNodeValue();
+        assertEquals("nodeValue", "this is text data", value);
+
+    }
+
+    /**
+     * 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/importNode15";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode16.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode16.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode16.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode16.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.Ignore;
+import org.junit.Test;
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "importNode(importedNode,deep)" method for a
+ * Document should raise NOT_SUPPORTED_ERR DOMException if
+ * the type of node being imported is DocumentType.
+ * Retrieve document staff.xml and get its type.
+ * Invoke method importNode(importedNode,deep) where importedNode
+ * contains the document type of the staff.xml.
+ * Method should raise NOT_SUPPORT_ERR DOMException.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-258A00AF')/constant[@name='NOT_SUPPORTED_ERR'])">http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-258A00AF')/constant[@name='NOT_SUPPORTED_ERR'])</a>
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode";>http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode</a>
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('Core-Document-importNode')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_SUPPORTED_ERR'])">http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('Core-Document-importNode')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_SUPPORTED_ERR'])</a>
+ */
+public class importNode16 extends DOMTestCase {
+    @Test
+    @Ignore("Doctype tricks")
+    public void testRun() throws Throwable {
+        Document doc;
+        Document anotherDoc;
+        DocumentType docType;
+        Node node;
+        doc = load("staffNS", true);
+        anotherDoc = load("staffNS", true);
+        docType = anotherDoc.getDoctype();
+
+        {
+            boolean success = false;
+            try {
+                node = doc.importNode(docType, false);
+            } catch (DOMException ex) {
+                success = (ex.code == DOMException.NOT_SUPPORTED_ERR);
+            }
+            assertTrue("throw_NOT_SUPPORTED_ERR", success);
+        }
+
+    }
+
+    /**
+     * 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/importNode16";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode17.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode17.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode17.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/importNode17.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,77 @@
+/*
+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.DOMException;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "importNode(importedNode,deep)" method for a
+ * Document should raise NOT_SUPPORTED_ERR DOMException if
+ * the type of node being imported is Document.
+ * Retrieve staff.xml document.
+ * Invoke method importNode(importedNode,deep) where importedNode
+ * contains staff.xml and deep is true.
+ * Method should raise NOT_SUPPORTED_ERR DOMException.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-258A00AF')/constant[@name='NOT_SUPPORTED_ERR'])">http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-258A00AF')/constant[@name='NOT_SUPPORTED_ERR'])</a>
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode";>http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode</a>
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('Core-Document-importNode')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_SUPPORTED_ERR'])">http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('Core-Document-importNode')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_SUPPORTED_ERR'])</a>
+ */
+public class importNode17 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Document anotherDoc;
+        Node node;
+        doc = load("staffNS", true);
+        anotherDoc = load("staffNS", true);
+
+        {
+            boolean success = false;
+            try {
+                node = doc.importNode(anotherDoc, false);
+            } catch (DOMException ex) {
+                success = (ex.code == DOMException.NOT_SUPPORTED_ERR);
+            }
+            assertTrue("throw_NOT_SUPPORTED_ERR", success);
+        }
+
+    }
+
+    /**
+     * 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/importNode17";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/internalSubset01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/internalSubset01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/internalSubset01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/internalSubset01.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.Ignore;
+import org.junit.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The "getInternalSubset()" method returns
+ * the internal subset as a string or null if there is none.
+ * This does not contain the delimiting brackets.
+ * Retrieve the documenttype.
+ * Apply the "getInternalSubset()" method.  Null is returned since there
+ * is not an internal subset.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-Core-DocType-internalSubset";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-Core-DocType-internalSubset</a>
+ */
+    public class internalSubset01 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        String internal;
+        doc = load("staff2", false);
+        docType = doc.getDoctype();
+        internal = docType.getInternalSubset();
+        assertNull("throw_Null", internal);
+
+    }
+
+    /**
+     * 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/internalSubset01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported01.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) 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.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XXX is NOT a legal value for the feature parameter.
+ * The method should return "false" since XXX is not a valid feature.
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "XXX" and version to "1.0".
+ * The method should return a boolean "false" since XXX is not a valid feature.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("XXX", "1.0");
+        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/isSupported01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported02.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) 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.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XML is a legal value for the feature parameter.
+ * The method should return "false" since 9.0 is not a valid version.
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "XML" and version to "9.0".
+ * The method should return a boolean "false" since 9.0 is not a valid version.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("XML", "9.0");
+        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/isSupported02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported04.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported04.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported04.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported04.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XML is a legal value for the feature parameter
+ * (Test for xml, lower case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 1.0).
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "xml" and the version equal to 
1.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("xml", "1.0");
+        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/isSupported04";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported05.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported05.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported05.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported05.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   Core is a legal value for the feature parameter
+ * (Test for core, lower case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 2.0).
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "core" and the version equal to 
2.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported05 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("core", "2.0");
+        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/isSupported05";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported06.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported06.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported06.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported06.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XML is a legal value for the feature parameter
+ * (Test for xml, lower case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 2.0).
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "xml" and the version equal to 
2.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported06 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("xml", "2.0");
+        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/isSupported06";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported07.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported07.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported07.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported07.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XML is a legal value for the feature parameter
+ * (Test for XML).
+ * If the version is not specified, supporting any version of the
+ * method to return true.
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "XML" and the version equal blank.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported07 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("XML", "");
+        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/isSupported07";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported09.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported09.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported09.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported09.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XML is a legal value for the feature parameter
+ * (Test for XML, upper case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 1.0).
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "XML" and the version equal to 
1.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported09 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("XML", "1.0");
+        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/isSupported09";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported10.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported10.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported10.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported10.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   CORE is a legal value for the feature parameter
+ * (Test for CORE, upper case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 2.0).
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "CORE" and the version equal to 
2.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported10 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("CORE", "2.0");
+        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/isSupported10";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported11.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported11.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported11.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported11.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.Document;
+import org.w3c.dom.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   XML is a legal value for the feature parameter
+ * (Test for XML, upper case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 2.0).
+ * <p>
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "XML" and the version equal to 
2.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported11 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("XML", "2.0");
+        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/isSupported11";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported12.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported12.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported12.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported12.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,97 @@
+/*
+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.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * isSupported(feature,version)" method is the name
+ * of the feature and the version is the version number of the
+ * feature to test.   CORE is a legal value for the feature parameter
+ * (Test for CORE, upper case).
+ * Legal values for the version parameter are 1.0 and 2.0
+ * (Test for 1.0).
+ * Retrieve the root node of the DOM document by invoking
+ * the "getDocumentElement()" method.   This should create a
+ * node object on which the "isSupported(feature,version)"
+ * method is invoked with "feature" equal to "CORE" and the version equal to 
1.0.
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ */
+public class isSupported12 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        java.util.List features = new java.util.ArrayList();
+        features.add("Core");
+        features.add("XML");
+        features.add("HTML");
+        features.add("Views");
+        features.add("StyleSheets");
+        features.add("CSS");
+        features.add("CSS2");
+        features.add("Events");
+        features.add("UIEvents");
+        features.add("MouseEvents");
+        features.add("MutationEvents");
+        features.add("HTMLEvents");
+        features.add("Range");
+        features.add("Traversal");
+        //features.add(new Double("bogus.bogus.bogus"));
+
+        Document doc;
+        Node rootNode;
+        String featureElement;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("Core", "2.0");
+        assertTrue("Core2", state);
+        for (int indexd467e91 = 0; indexd467e91 < features.size(); 
indexd467e91++) {
+            featureElement = (String) features.get(indexd467e91);
+            state = rootNode.isSupported(featureElement, "1.0");
+        }
+        for (int indexd467e96 = 0; indexd467e96 < features.size(); 
indexd467e96++) {
+            featureElement = (String) features.get(indexd467e96);
+            state = rootNode.isSupported(featureElement, "2.0");
+        }
+
+    }
+
+    /**
+     * 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/isSupported12";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported13.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported13.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported13.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported13.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,61 @@
+/*
+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.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * Calls isSupported("Core","") should return true for all implementations (by 
extension of core-14).
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ * @see <a 
href="http://www.w3.org/2000/11/DOM-Level-2-errata#core-14";>http://www.w3.org/2000/11/DOM-Level-2-errata#core-14</a>
+ */
+public class isSupported13 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("Core", "");
+        assertTrue("Core", 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/isSupported13";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported14.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported14.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported14.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/isSupported14.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.Node;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * Calls isSupported("Core",null) should return true for all implementations 
(by extension of core-14).
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-Node-supports</a>
+ * @see <a 
href="http://www.w3.org/2000/11/DOM-Level-2-errata#core-14";>http://www.w3.org/2000/11/DOM-Level-2-errata#core-14</a>
+ */
+public class isSupported14 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node rootNode;
+        boolean state;
+        String nullString = null;
+
+        doc = load("staff", false);
+        rootNode = doc.getDocumentElement();
+        state = rootNode.isSupported("Core", nullString);
+        assertTrue("Core", 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/isSupported14";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName01.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.Attr;
+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 "getLocalName()" method for a Node
+ * returns the local part of the qualified name of this node,
+ * and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE
+ * and nodes created with a DOM Level 1 method, this is null.
+ * <p>
+ * Retrieve the first emp:address node and get the attributes of this node."
+ * Then apply the getLocalName() method to the emp:domestic attribute.
+ * The method should return "domestic".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN</a>
+ */
+public class localName01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Element testAddr;
+        Attr addrAttr;
+        String localName;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("emp:address");
+        testAddr = (Element) elementList.item(0);
+        addrAttr = testAddr.getAttributeNode("emp:domestic");
+        localName = addrAttr.getLocalName();
+        assertEquals("localName", "domestic", localName);
+
+    }
+
+    /**
+     * 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/localName01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName02.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 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.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The "getLocalName()" method for a Node
+ * returns the local part of the qualified name of this node,
+ * and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE
+ * and nodes created with a DOM Level 1 method, this is null.
+ * <p>
+ * Create an new Element with the createElement() method.
+ * Invoke the "getLocalName()" method on the newly created element
+ * node will cause "null" to be returned.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN</a>
+ */
+public class localName02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Node createdNode;
+        String localName;
+        doc = load("staffNS", false);
+        createdNode = doc.createElement("test:employee");
+        localName = createdNode.getLocalName();
+        assertNull("throw_Null," +
+                   "Expected: nodeName attribute set to tagName, and 
localName, " +
+                   "prefix, and namespaceURI set to null", localName);
+
+    }
+
+    /**
+     * 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/localName02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName03.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName03.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName03.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName03.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.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The "getLocalName()" method for a Node
+ * returns the local part of the qualified name of this node,
+ * and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE
+ * and nodes created with a DOM Level 1 method, this is null.
+ * <p>
+ * Retrieve the first employeeId node and get the first child of this node.
+ * Since the first child is Text node invoking the "getLocalName()"
+ * method will cause "null" to be returned.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN</a>
+ */
+public class localName03 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Node testEmployee;
+        Node textNode;
+        String localName;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("employeeId");
+        testEmployee = elementList.item(0);
+        textNode = testEmployee.getFirstChild();
+        localName = textNode.getLocalName();
+        assertNull("textNodeLocalName", localName);
+    }
+
+    /**
+     * 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/localName03";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName04.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName04.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName04.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/localName04.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 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 "getLocalName()" method for a Node
+ * returns the local part of the qualified name of this node,
+ * and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE
+ * and nodes created with a DOM Level 1 method, this is null.
+ * <p>
+ * Retrieve the first employee node and invoke the "getLocalName()"
+ * method.   The method should return "employee".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-NodeNSLocalN</a>
+ */
+public class localName04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NodeList elementList;
+        Node testEmployee;
+        String employeeLocalName;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("employee");
+        testEmployee = elementList.item(0);
+        employeeLocalName = testEmployee.getLocalName();
+        assertEquals("lname", "employee", employeeLocalName);
+
+    }
+
+    /**
+     * 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/localName04";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns01.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,77 @@
+/*
+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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * Using the method getNamedItemNS, retreive the entity "ent1" and notation 
"notation1"
+ * from a NamedNodeMap of this DocumentTypes entities and notations.
+ * Both should be null since entities and notations are not namespaced.
+ *
+ * @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>
+ * @see <a 
href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=407";>http://www.w3.org/Bugs/Public/show_bug.cgi?id=407</a>
+ * @see <a 
href="http://lists.w3.org/Archives/Member/w3c-dom-ig/2003Nov/0016.html";>http://lists.w3.org/Archives/Member/w3c-dom-ig/2003Nov/0016.html</a>
+ */
+public class namednodemapgetnameditemns01 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        NamedNodeMap entities;
+        NamedNodeMap notations;
+        Entity entity;
+        Notation notation;
+        String entityName;
+        String notationName;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        docType = doc.getDoctype();
+        entities = docType.getEntities();
+        notations = docType.getNotations();
+        entity = (Entity) entities.getNamedItemNS(nullNS, "ent1");
+        assertNull("entityNull", entity);
+        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/namednodemapgetnameditemns01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns02.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 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 method getNamedItemNS retrieves a node specified by local name and 
namespace URI.
+ * Using the method getNamedItemNS, retreive an attribute node having 
namespaceURI=http://www.nist.gov
+ * and localName=domestic, from a NamedNodeMap of attribute nodes, for the 
second element
+ * whose namespaceURI=http://www.nist.gov and localName=address.  Verify if 
the attr node
+ * has been retreived successfully by checking its nodeName atttribute.
+ *
+ * @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 namednodemapgetnameditemns02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NamedNodeMap attributes;
+        Node element;
+        Attr attribute;
+        NodeList elementList;
+        String attrName;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS("http://www.nist.gov";, 
"address");
+        element = elementList.item(1);
+        attributes = element.getAttributes();
+        attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov";, 
"domestic");
+        attrName = attribute.getNodeName();
+        assertEquals("namednodemapgetnameditemns02", "emp: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/namednodemapgetnameditemns02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns03.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns03.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns03.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns03.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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The method getNamedItemNS retrieves a node specified by local name and 
namespace URI.
+ * Create a new Element node and add 2 new attribute nodes having the same 
local name but different
+ * namespace names and namespace prefixes to it.  Using the getNamedItemNS 
retreive the second attribute node.
+ * Verify if the attr node has been retreived successfully by checking its 
nodeName atttribute.
+ *
+ * @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 namednodemapgetnameditemns03 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NamedNodeMap attributes;
+        Node element;
+        Attr attribute;
+        Attr newAttr1;
+        Attr newAttr2;
+        Attr newAttribute;
+        String attrName;
+        doc = load("staffNS", false);
+        element = doc.createElementNS("http://www.w3.org/DOM/Test";, "root");
+        newAttr1 = doc.createAttributeNS("http://www.w3.org/DOM/L1";, "L1:att");
+        newAttribute = ((Element) /*Node 
*/element).setAttributeNodeNS(newAttr1);
+        newAttr2 = doc.createAttributeNS("http://www.w3.org/DOM/L2";, "L2:att");
+        newAttribute = ((Element) /*Node 
*/element).setAttributeNodeNS(newAttr2);
+        attributes = element.getAttributes();
+        attribute = (Attr) 
attributes.getNamedItemNS("http://www.w3.org/DOM/L2";, "att");
+        attrName = attribute.getNodeName();
+        assertEquals("namednodemapgetnameditemns03", "L2:att", 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/namednodemapgetnameditemns03";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns04.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns04.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns04.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns04.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.assertEquals;
+
+
+/**
+ * The method getNamedItemNS retrieves a node specified by local name and 
namespace URI.
+ * Retreive the second address element node having localName=adrress.
+ * Create a new attribute node having the same name as an existing node but 
different namespaceURI
+ * and add it to this element.  Using the getNamedItemNS retreive the newly 
created attribute
+ * node from a nodemap of attributes of the retreive element node.
+ * Verify if the attr node has been retreived successfully by checking its 
nodeName atttribute.
+ *
+ * @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 namednodemapgetnameditemns04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NamedNodeMap attributes;
+        Element element;
+        Attr attribute;
+        Attr newAttr1;
+        Attr newAttribute;
+        NodeList elementList;
+        String attrName;
+        doc = load("staffNS", true);
+        elementList = doc.getElementsByTagNameNS("*", "address");
+        element = (Element) elementList.item(1);
+        newAttr1 = doc.createAttributeNS("http://www.w3.org/DOM/L1";, "street");
+        newAttribute = element.setAttributeNodeNS(newAttr1);
+        attributes = element.getAttributes();
+        attribute = (Attr) 
attributes.getNamedItemNS("http://www.w3.org/DOM/L1";, "street");
+        attrName = attribute.getNodeName();
+        assertEquals("namednodemapgetnameditemns04", "street", 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/namednodemapgetnameditemns04";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns05.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns05.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns05.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns05.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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The method getNamedItemNS retrieves a node specified by local name and 
namespace URI.
+ * Retreieve the second address element and its attribute into a named node 
map.
+ * Try retreiving the street attribute from the namednodemap using the
+ * default namespace uri and the street attribute name.  Since the default
+ * namespace doesnot apply to attributes this should return null.
+ *
+ * @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 namednodemapgetnameditemns05 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NamedNodeMap attributes;
+        Node element;
+        Attr attribute;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagNameNS("*", "address");
+        element = elementList.item(1);
+        attributes = element.getAttributes();
+        attribute = (Attr) attributes.getNamedItemNS("*", "street");
+        assertNull("namednodemapgetnameditemns05", attribute);
+
+    }
+
+    /**
+     * 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/namednodemapgetnameditemns05";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns06.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns06.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns06.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapgetnameditemns06.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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * Retreive the second address element node having localName=adrress.  
Retreive the attributes
+ * of this element into 2 nodemaps.  Create a new attribute node and add it to 
this element.
+ * Since NamedNodeMaps are live each one should get updated, using the 
getNamedItemNS retreive
+ * the newly created attribute from each node map.
+ * Verify if the attr node has been retreived successfully by checking its 
nodeName atttribute.
+ *
+ * @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 namednodemapgetnameditemns06 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NamedNodeMap attributesMap1;
+        NamedNodeMap attributesMap2;
+        Element element;
+        Attr attribute;
+        Attr newAttr1;
+        Attr newAttribute;
+        NodeList elementList;
+        String attrName;
+        doc = load("staffNS", true);
+        elementList = doc.getElementsByTagNameNS("*", "address");
+        element = (Element) elementList.item(1);
+        attributesMap1 = element.getAttributes();
+        attributesMap2 = element.getAttributes();
+        newAttr1 = doc.createAttributeNS("http://www.w3.org/DOM/L1";, "street");
+        newAttribute = element.setAttributeNodeNS(newAttr1);
+        attribute = (Attr) 
attributesMap1.getNamedItemNS("http://www.w3.org/DOM/L1";, "street");
+        attrName = attribute.getNodeName();
+        assertEquals("namednodemapgetnameditemnsMap106", "street", attrName);
+        attribute = (Attr) 
attributesMap2.getNamedItemNS("http://www.w3.org/DOM/L1";, "street");
+        attrName = attribute.getNodeName();
+        assertEquals("namednodemapgetnameditemnsMap206", "street", 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/namednodemapgetnameditemns06";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapremovenameditemns01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapremovenameditemns01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapremovenameditemns01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/namednodemapremovenameditemns01.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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The method removeNamedItemNS removes a node specified by local name and 
namespace
+ * Retreive an attribute node and then remove from the NamedNodeMap.  Verify 
if the attribute
+ * node was actually remove from the node map.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-D58B193";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-D58B193</a>
+ */
+public class namednodemapremovenameditemns01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        NamedNodeMap attributes;
+        Node element;
+        Attr attribute;
+        NodeList elementList;
+        doc = load("staffNS", true);
+        elementList = doc.getElementsByTagNameNS("http://www.nist.gov";, 
"address");
+        element = elementList.item(1);
+        attributes = element.getAttributes();
+        attribute = (Attr) attributes.removeNamedItemNS("http://www.nist.gov";, 
"domestic");
+        attribute = (Attr) attributes.getNamedItemNS("http://www.nist.gov";, 
"domestic");
+        assertNull("namednodemapremovenameditemns01", attribute);
+
+    }
+
+    /**
+     * 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/namednodemapremovenameditemns01";;
+    }
+
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to