Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode21.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode21.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode21.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode21.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,118 @@
+/*
+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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The importNode method imports a node from another document to this document.
+ * The returned node has no parent; (parentNode is null). The source node is 
not
+ * altered or removed from the original document but a new copy of the source 
node
+ * is created.
+ * Using the method importNode with deep=true, retreive the entity refs 
present in the
+ * second element node whose tagName is address and import these nodes into 
another document.
+ * Verify if the nodes have been imported correctly by checking the nodeNames 
of the
+ * imported nodes, since they are imported into a new document which doesnot 
have thes defined,
+ * the imported nodes should not have any children.
+ * Now import the entityRef nodes into the same document and verify if the 
nodes have been
+ * imported correctly by checking the nodeNames of the imported nodes, and by 
checking the
+ * value of the replacement text of the imported nodes.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core";>http://www.w3.org/TR/DOM-Level-2-Core/core</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>
+ */
+public class documentimportnode21 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docTypeNull = null;
+
+        Document docImp;
+        DOMImplementation domImpl;
+        NodeList addressList;
+        NodeList addressChildList;
+        Element element;
+        EntityReference entRef2;
+        EntityReference entRefImp2;
+        EntityReference entRef3;
+        EntityReference entRefImp3;
+        String nodeName2;
+        String nodeName3;
+        String nodeNameImp2;
+        String nodeNameImp3;
+        NodeList nodes;
+        Node nodeImp3;
+        Node nodeImp2;
+        String nodeValueImp2;
+        String nodeValueImp3;
+        doc = load("staffNS", true);
+        domImpl = doc.getImplementation();
+        docImp = domImpl.createDocument("http://www.w3.org/DOM/Test";, "a:b", 
docTypeNull);
+        addressList = doc.getElementsByTagName("address");
+        element = (Element) addressList.item(1);
+        addressChildList = element.getChildNodes();
+        assertTrue(addressChildList.item(0).getClass().getName()
+            , addressChildList.item(0) instanceof EntityReference);
+        assertTrue(addressChildList.item(2).getClass().getName()
+            , addressChildList.item(2) instanceof EntityReference);
+        entRef2 = (EntityReference) addressChildList.item(0);
+        entRef3 = (EntityReference) addressChildList.item(2);
+        entRefImp2 = (EntityReference) docImp.importNode(entRef2, true);
+        entRefImp3 = (EntityReference) docImp.importNode(entRef3, false);
+        nodeName2 = entRef2.getNodeName();
+        nodeName3 = entRef3.getNodeName();
+        nodeNameImp2 = entRefImp2.getNodeName();
+        nodeNameImp3 = entRefImp3.getNodeName();
+        assertEquals("documentimportnode21_Ent2NodeName", nodeName2, 
nodeNameImp2);
+        assertEquals("documentimportnode21_Ent3NodeName", nodeName3, 
nodeNameImp3);
+        entRefImp2 = (EntityReference) doc.importNode(entRef2, true);
+        entRefImp3 = (EntityReference) doc.importNode(entRef3, false);
+        nodes = entRefImp2.getChildNodes();
+        nodeImp2 = nodes.item(0);
+        nodeValueImp2 = nodeImp2.getNodeValue();
+        nodes = entRefImp3.getChildNodes();
+        nodeImp3 = nodes.item(0);
+        nodeValueImp3 = nodeImp3.getNodeValue();
+        assertEquals("documentimportnode21_Ent2NodeValue", "1900 Dallas Road", 
nodeValueImp2);
+        assertEquals("documentimportnode21_Ent3Nodevalue", "Texas", 
nodeValueImp3);
+
+    }
+
+    /**
+     * 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/documentimportnode21";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode22.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode22.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode22.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documentimportnode22.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,118 @@
+/*
+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.*;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The importNode method imports a node from another document to this document.
+ * The returned node has no parent; (parentNode is null). The source node is 
not
+ * altered or removed from the original document but a new copy of the source 
node
+ * is created.
+ * Using the method importNode with deep=true/false, import two notaiton nodes 
into the
+ * same and different documnet objects.  In each case check if valid public 
and systemids
+ * are returned if any and if none, check if a null value was returned.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core";>http://www.w3.org/TR/DOM-Level-2-Core/core</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>
+ */
+
+/**
+ * @ignore true: ER, etc
+ */
+public class documentimportnode22 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docTypeNull = null;
+
+        Document docImp;
+        DOMImplementation domImpl;
+        DocumentType docType;
+        NamedNodeMap nodeMap;
+        Notation notation1;
+        Notation notation2;
+        Notation notationImp1;
+        Notation notationImp2;
+        Notation notationImpNew1;
+        Notation notationImpNew2;
+        String publicId1;
+        String publicId1Imp;
+        String publicId1NewImp;
+        String publicId2Imp;
+        String publicId2NewImp;
+        String systemId1Imp;
+        String systemId1NewImp;
+        String systemId2;
+        String systemId2Imp;
+        String systemId2NewImp;
+        doc = load("staffNS", true);
+        domImpl = doc.getImplementation();
+        docType = doc.getDoctype();
+        docImp = domImpl.createDocument("http://www.w3.org/DOM/Test";, "a:b", 
docTypeNull);
+        nodeMap = docType.getNotations();
+        notation1 = (Notation) nodeMap.getNamedItem("notation1");
+        notation2 = (Notation) nodeMap.getNamedItem("notation2");
+        notationImp1 = (Notation) doc.importNode(notation1, true);
+        notationImp2 = (Notation) doc.importNode(notation2, false);
+        notationImpNew1 = (Notation) docImp.importNode(notation1, false);
+        notationImpNew2 = (Notation) docImp.importNode(notation2, true);
+        publicId1 = notation1.getPublicId();
+        publicId1Imp = notation1.getPublicId();
+        publicId1NewImp = notation1.getPublicId();
+        systemId1Imp = notation1.getSystemId();
+        systemId1NewImp = notation1.getSystemId();
+        publicId2Imp = notation2.getPublicId();
+        publicId2NewImp = notation2.getPublicId();
+        systemId2 = notation2.getSystemId();
+        systemId2Imp = notation2.getSystemId();
+        systemId2NewImp = notation2.getSystemId();
+        assertEquals("documentimportnode22_N1PID", publicId1, publicId1Imp);
+        assertEquals("documentimportnode22_N1NPID", publicId1, 
publicId1NewImp);
+        assertNull("documentimportnode22_N1SID", systemId1Imp);
+        assertNull("documentimportnode22_N1NSID", systemId1NewImp);
+        assertEquals("documentimportnode22_N2SID", systemId2, systemId2Imp);
+        assertEquals("documentimportnode22_N2NSID", systemId2, 
systemId2NewImp);
+        assertNull("documentimportnode22_N2PID", publicId2Imp);
+        assertNull("documentimportnode22_N2NPID", publicId2Imp);
+
+    }
+
+    /**
+     * 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/documentimportnode22";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypeinternalSubset01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypeinternalSubset01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypeinternalSubset01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypeinternalSubset01.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-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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The method getInternalSubset() returns the internal subset as a string.
+ * Create a new DocumentType node with null values for publicId and systemId.
+ * Verify that its internal subset is null.
+ *
+ * @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>
+ * @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 documenttypeinternalSubset01 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        DOMImplementation domImpl;
+        String internal;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        docType = domImpl.createDocumentType("l2:root", nullNS, nullNS);
+        internal = docType.getInternalSubset();
+        assertNull("documenttypeinternalSubset01", 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/documenttypeinternalSubset01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypepublicid01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypepublicid01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypepublicid01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypepublicid01.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-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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The method getInternalSubset() returns the public identifier of the 
external subset.
+ * Create a new DocumentType node with the value "PUB" for its publicId.
+ * Check the value of the publicId attribute using getPublicId().
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-Core-DocType-publicId";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-Core-DocType-publicId</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 documenttypepublicid01 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        DOMImplementation domImpl;
+        String publicId;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        docType = domImpl.createDocumentType("l2:root", "PUB", nullNS);
+        publicId = docType.getPublicId();
+        assertEquals("documenttypepublicid01", "PUB", publicId);
+
+    }
+
+    /**
+     * 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/documenttypepublicid01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypesystemid01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypesystemid01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypesystemid01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/documenttypesystemid01.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.Ignore;
+import org.junit.Test;
+import org.w3c.dom.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The method getInternalSubset() returns the public identifier of the 
external subset.
+ * Create a new DocumentType node with the value "SYS" for its systemId and 
PUB for
+ * its publicId.  Check the value of the systemId and pbulicId attributes.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-Core-DocType-systemId";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-Core-DocType-systemId</a>
+ */
+public class documenttypesystemid01 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DocumentType docType;
+        DOMImplementation domImpl;
+        String publicId;
+        String systemId;
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        docType = domImpl.createDocumentType("l2:root", "PUB", "SYS");
+        publicId = docType.getPublicId();
+        systemId = docType.getSystemId();
+        assertEquals("documenttypepublicid01", "PUB", publicId);
+        assertEquals("documenttypesystemid01", "SYS", systemId);
+
+    }
+
+    /**
+     * 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/documenttypesystemid01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument03.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument03.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument03.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument03.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,88 @@
+/*
+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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNotNull;
+
+
+/**
+ * The createDocument method with valid arguments, should create a DOM 
Document of
+ * the specified type.
+ * <p>
+ * Call the createDocument on this DOMImplementation with
+ * createDocument ("http://www.w3.org/DOMTest/L2",see the array below for 
valid QNames,null).
+ * Check if the returned Document object is is empty with no Document Element.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument</a>
+ */
+public class domimplementationcreatedocument03 extends DOMTestCase {
+
+
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        Document newDoc;
+        DocumentType docType = null;
+
+        String namespaceURI = "http://www.w3.org/DOMTest/L2";;
+        String qualifiedName;
+        java.util.List qualifiedNames = new java.util.ArrayList();
+        qualifiedNames.add("_:_");
+        qualifiedNames.add("_:h0");
+        qualifiedNames.add("_:test");
+        qualifiedNames.add("l_:_");
+        qualifiedNames.add("ns:_0");
+        qualifiedNames.add("ns:a0");
+        qualifiedNames.add("ns0:test");
+        // qualifiedNames.add(new Double("a.b:c"));
+        qualifiedNames.add("a.b:c");
+        qualifiedNames.add("a-b:c");
+        qualifiedNames.add("a-b:c");
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        for (int indexd351e76 = 0; indexd351e76 < qualifiedNames.size(); 
indexd351e76++) {
+            qualifiedName = (String) qualifiedNames.get(indexd351e76);
+            newDoc = domImpl.createDocument(namespaceURI, qualifiedName, 
docType);
+            assertNotNull("domimplementationcreatedocument03", newDoc);
+        }
+
+    }
+
+    /**
+     * 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/domimplementationcreatedocument03";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument04.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument04.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument04.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument04.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.DOMException;
+import org.w3c.dom.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+
+/**
+ * The createDocument method should throw a NAMESPACE_ERR if the qualifiedName 
has
+ * a prefix and the namespaceURI is null.
+ * <p>
+ * Call the createDocument on this DOMImplementation with null namespaceURI 
and a
+ * qualifiedName that has a namespace prefix using this DOMImplementation.
+ * Check if the NAMESPACE_ERR is thrown.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument</a>
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument</a>
+ */
+public class domimplementationcreatedocument04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        Document newDoc;
+        String namespaceURI = null;
+
+        String qualifiedName = "dom:root";
+        DocumentType docType = null;
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+
+        {
+            boolean success = false;
+            try {
+                newDoc = domImpl.createDocument(namespaceURI, qualifiedName, 
docType);
+                fail("qualifiedName has a prefix and the namespaceURI is null: 
NAMESPACE_ERR");
+            } catch (DOMException ex) {
+                assertEquals(ex.code, DOMException.NAMESPACE_ERR);
+            }
+
+        }
+
+    }
+
+    /**
+     * 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/domimplementationcreatedocument04";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument05.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument05.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument05.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument05.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,80 @@
+/*
+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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The createDocument method should throw a NAMESPACE_ERR if the qualifiedName 
has
+ * a prefix that is xml and the namespaceURI is different from
+ * http://www..w3.org/XML/1998/namespace.
+ * <p>
+ * Call the createDocument on this DOMImplementation with namespaceURI that is
+ * http://www.w3.org/xml/1998/namespace and a qualifiedName that has the 
prefix xml
+ * Check if the NAMESPACE_ERR is thrown.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument</a>
+ */
+public class domimplementationcreatedocument05 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        Document newDoc;
+        String namespaceURI = "http://www.w3.org/xml/1998/namespace";;
+        String qualifiedName = "xml:root";
+        DocumentType docType = null;
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+
+        {
+            boolean success = false;
+            try {
+                newDoc = domImpl.createDocument(namespaceURI, qualifiedName, 
docType);
+            } catch (DOMException ex) {
+                success = (ex.code == DOMException.NAMESPACE_ERR);
+            }
+            assertTrue("domimplementationcreatedocument05, NS  
http://www.w3.org/xml/1998/namespace and a qualifiedName that has the prefix 
xml", 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/domimplementationcreatedocument05";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument07.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument07.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument07.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocument07.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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The createDocument method should raise a NAMESPACE_ERR if the qualifiedName 
is malformed
+ * <p>
+ * Invoke the createDocument method on this DOMImplementation object with null 
values
+ * for namespaceURI and docType and a malformed qualifiedName.
+ * The NAMESPACE_ERR should be raised.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument</a>
+ */
+public class domimplementationcreatedocument07 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        Document newDoc;
+        String namespaceURI = "http://www.w3.org/DOMTest/level2";;
+        DocumentType docType = null;
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+
+        {
+            boolean success = false;
+            try {
+                newDoc = domImpl.createDocument(namespaceURI, ":", docType);
+            } catch (DOMException ex) {
+                success = (ex.code == DOMException.NAMESPACE_ERR);
+            }
+            assertTrue("domimplementationcreatedocument07,malformed 
qualifiedName", 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/domimplementationcreatedocument07";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype01.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,89 @@
+/*
+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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The method createDocumentType with valid values for qualifiedName, publicId 
and
+ * systemId should create an empty DocumentType node.
+ * <p>
+ * Invoke createDocument on this DOMImplementation with a valid qualifiedName 
and different
+ * publicIds and systemIds.  Check if the the DocumentType node was created 
with its
+ * ownerDocument attribute set to null.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument</a>
+ */
+public class domimplementationcreatedocumenttype01 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        DocumentType newDocType;
+        Document ownerDocument;
+        String qualifiedName = "test:root";
+        String publicId;
+        String systemId;
+        java.util.List publicIds = new java.util.ArrayList();
+        publicIds.add("1234");
+        publicIds.add("test");
+
+        java.util.List systemIds = new java.util.ArrayList();
+        systemIds.add("");
+        systemIds.add("test");
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        for (int indexd355e61 = 0; indexd355e61 < publicIds.size(); 
indexd355e61++) {
+            publicId = (String) publicIds.get(indexd355e61);
+            for (int indexd355e63 = 0; indexd355e63 < systemIds.size(); 
indexd355e63++) {
+                systemId = (String) systemIds.get(indexd355e63);
+                newDocType = domImpl.createDocumentType(qualifiedName, 
publicId, systemId);
+                
assertNotNull("domimplementationcreatedocumenttype01_newDocType", newDocType);
+                ownerDocument = newDocType.getOwnerDocument();
+                
assertNull("domimplementationcreatedocumenttype01_ownerDocument", 
ownerDocument);
+            }
+        }
+
+    }
+
+    /**
+     * 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/domimplementationcreatedocumenttype01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype02.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,94 @@
+/*
+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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+
+
+/**
+ * The method createDocumentType with valid values for qualifiedName, publicId 
and
+ * systemId should create an empty DocumentType node.
+ * <p>
+ * Invoke createDocument on this DOMImplementation with a different valid 
qualifiedNames
+ * and a valid publicId and systemId.  Check if the the DocumentType node was 
created
+ * with its ownerDocument attribute set to null.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocType";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocType</a>
+ */
+public class domimplementationcreatedocumenttype02 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        DocumentType newDocType;
+        Document ownerDocument;
+        String publicId = "http://www.w3.org/DOM/Test/dom2.dtd";;
+        String systemId = "dom2.dtd";
+        String qualifiedName;
+        java.util.List qualifiedNames = new java.util.ArrayList();
+        qualifiedNames.add("_:_");
+        qualifiedNames.add("_:h0");
+        qualifiedNames.add("_:test");
+        // qualifiedNames.add(new Double("_:_."));
+        qualifiedNames.add("_:a-");
+        qualifiedNames.add("l_:_");
+        qualifiedNames.add("ns:_0");
+        qualifiedNames.add("ns:a0");
+        qualifiedNames.add("ns0:test");
+        //  qualifiedNames.add(new Double("ns:EEE."));
+        qualifiedNames.add("ns:_-");
+        //  qualifiedNames.add(new Double("a.b:c"));
+        //   qualifiedNames.add(new Double("a-b:c.j"));
+        qualifiedNames.add("a-b:c");
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        for (int indexd356e88 = 0; indexd356e88 < qualifiedNames.size(); 
indexd356e88++) {
+            qualifiedName = (String) qualifiedNames.get(indexd356e88);
+            newDocType = domImpl.createDocumentType(qualifiedName, publicId, 
systemId);
+            assertNotNull("domimplementationcreatedocumenttype02_newDocType", 
newDocType);
+            ownerDocument = newDocType.getOwnerDocument();
+            assertNull("domimplementationcreatedocumenttype02_ownerDocument", 
ownerDocument);
+        }
+
+    }
+
+    /**
+     * 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/domimplementationcreatedocumenttype02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype04.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype04.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype04.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationcreatedocumenttype04.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,98 @@
+/*
+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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DocumentType;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The method createDocumentType should raise a INVALID_CHARACTER_ERR if the 
qualifiedName
+ * contains an illegal characters.
+ * <p>
+ * Invoke createDocument on this DOMImplementation with qualifiedNames having 
illegal characters.
+ * Check if an INVALID_CHARACTER_ERR is raised in each case.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocType";>http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocType</a>
+ */
+public class domimplementationcreatedocumenttype04 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        DocumentType newDocType;
+        String publicId = "http://www.w3.org/DOM/Test/dom2.dtd";;
+        String systemId = "dom2.dtd";
+        String qualifiedName;
+        java.util.List qualifiedNames = new java.util.ArrayList();
+        qualifiedNames.add("{");
+        qualifiedNames.add("}");
+        qualifiedNames.add("'");
+        qualifiedNames.add("~");
+        qualifiedNames.add("`");
+        qualifiedNames.add("@");
+        qualifiedNames.add("#");
+        qualifiedNames.add("$");
+        qualifiedNames.add("%");
+        qualifiedNames.add("^");
+        qualifiedNames.add("&");
+        qualifiedNames.add("*");
+        qualifiedNames.add("(");
+        qualifiedNames.add(")");
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        for (int indexd357e86 = 0; indexd357e86 < qualifiedNames.size(); 
indexd357e86++) {
+            qualifiedName = (String) qualifiedNames.get(indexd357e86);
+
+            {
+                boolean success = false;
+                try {
+                    newDocType = domImpl.createDocumentType(qualifiedName, 
publicId, systemId);
+                } catch (DOMException ex) {
+                    success = (ex.code == DOMException.INVALID_CHARACTER_ERR);
+                }
+                assertTrue("domimplementationcreatedocumenttype04", 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/domimplementationcreatedocumenttype04";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturecore.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturecore.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturecore.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturecore.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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * "hasFeature(feature,version)" method is the package name
+ * of the feature.  Legal values are XML and HTML and CORE.
+ * (Test for feature core, lower case)
+ * <p>
+ * Retrieve the entire DOM document and invoke its
+ * "getImplementation()" method.  This should create a
+ * DOMImplementation object whose "hasFeature(feature,
+ * version)" method is invoked with feature equal to "core".
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7</a>
+ */
+public class domimplementationfeaturecore extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        boolean state;
+        doc = load("staff", false);
+        domImpl = doc.getImplementation();
+        state = domImpl.hasFeature("core", "2.0");
+        assertTrue("domimplementationFeaturecoreAssert", 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/domimplementationfeaturecore";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturexmlversion2.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturexmlversion2.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturexmlversion2.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationfeaturexmlversion2.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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The "feature" parameter in the
+ * "hasFeature(feature,version)" method is the package name
+ * of the feature.  Legal values are XML and HTML.
+ * (Test for feature "xml" and version "2.0")
+ * <p>
+ * Retrieve the entire DOM document and invoke its
+ * "getImplementation()" method.  This should create a
+ * DOMImplementation object whose "hasFeature(feature,
+ * version)" method is invoked with "feature" equal to "xml".
+ * The method should return a boolean "true".
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7</a>
+ */
+
+public class domimplementationfeaturexmlversion2 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        boolean state;
+        doc = load("staff", false);
+        domImpl = doc.getImplementation();
+        state = domImpl.hasFeature("xml", "2.0");
+        assertTrue("domimplementationFeaturexmlVersion2Assert", 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/domimplementationfeaturexmlversion2";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature01.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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertTrue;
+
+
+/**
+ * The method "hasFeature(feature,version)" tests if the DOMImplementation 
implements
+ * a specific feature and if so returns true.
+ * Call the hasFeature method on this DOMImplementation with a combination of 
features
+ * versions as below.  Valid feature names are case insensitive and versions 
"2.0",
+ * "1.0" and if the version is not specified, supporting any version of the 
feature
+ * should return true.  Check if the value returned value was true.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7</a>
+ */
+public class domimplementationhasfeature01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        String version = "";
+        String version1 = "1.0";
+        String version2 = "2.0";
+        String featureCore;
+        String featureXML;
+        boolean success;
+        java.util.List featuresXML = new java.util.ArrayList();
+        featuresXML.add("XML");
+        featuresXML.add("xmL");
+
+        java.util.List featuresCore = new java.util.ArrayList();
+        featuresCore.add("Core");
+        featuresCore.add("CORE");
+
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        for (int indexd360e63 = 0; indexd360e63 < featuresXML.size(); 
indexd360e63++) {
+            featureXML = (String) featuresXML.get(indexd360e63);
+            success = domImpl.hasFeature(featureXML, version);
+            assertTrue("domimplementationhasfeature01_XML_1", success);
+            success = domImpl.hasFeature(featureXML, version1);
+            assertTrue("domimplementationhasfeature01_XML_2", success);
+        }
+        for (int indexd360e74 = 0; indexd360e74 < featuresCore.size(); 
indexd360e74++) {
+            featureCore = (String) featuresCore.get(indexd360e74);
+            success = domImpl.hasFeature(featureCore, version);
+            assertTrue("domimplementationhasfeature01_Core_1", success);
+            success = domImpl.hasFeature(featureCore, version1);
+            success = domImpl.hasFeature(featureCore, version2);
+            assertTrue("domimplementationhasfeature01_Core_3", 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/domimplementationhasfeature01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/domimplementationhasfeature02.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-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.DOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertFalse;
+
+
+/**
+ * The method "hasFeature(feature,version)" tests if the DOMImplementation 
implements
+ * a specific feature and if not returns false.
+ * Call the hasFeature method on this DOMImplementation with a unfimiliar 
values for
+ * feature and version.  Check if the value returned was false.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7</a>
+ */
+public class domimplementationhasfeature02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        DOMImplementation domImpl;
+        boolean success;
+        doc = load("staffNS", false);
+        domImpl = doc.getImplementation();
+        success = domImpl.hasFeature("Blah Blah", "");
+        assertFalse("domimplementationhasfeature02", 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/domimplementationhasfeature02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens01.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.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The method getAttributeNodeNS retrieves an Attr node by local name and 
namespace URI.
+ * Create a new element node and add 2 new attribute nodes to it that have the 
same
+ * local name but different namespaceURIs and prefixes.
+ * Retrieve an attribute using namespace and localname and check its value, 
name and
+ * namespaceURI.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAtNodeNS";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAtNodeNS</a>
+ */
+public class elementgetattributenodens01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        Attr attribute1;
+        Attr attribute2;
+        Attr newAttribute1;
+        Attr newAttribute2;
+        Attr attribute;
+        String attrValue;
+        String attrName;
+        String attNodeName;
+        String attrLocalName;
+        String attrNS;
+        doc = load("staffNS", false);
+        element = doc.createElementNS("namespaceURI", "root");
+        attribute1 = doc.createAttributeNS("http://www.w3.org/DOM/Level2";, 
"l2:att");
+        newAttribute1 = element.setAttributeNodeNS(attribute1);
+        attribute2 = doc.createAttributeNS("http://www.w3.org/DOM/Level1";, 
"att");
+        newAttribute2 = element.setAttributeNodeNS(attribute2);
+        attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2";, 
"att");
+        attrValue = attribute.getNodeValue();
+        attrName = attribute.getName();
+        attNodeName = attribute.getNodeName();
+        attrLocalName = attribute.getLocalName();
+        attrNS = attribute.getNamespaceURI();
+        assertEquals("elementgetattributenodens01_attrValue", "", attrValue);
+        assertEquals("elementgetattributenodens01_attrName", "l2:att", 
attrName);
+        assertEquals("elementgetattributenodens01_attrNodeName", "l2:att", 
attNodeName);
+        assertEquals("elementgetattributenodens01_attrLocalName", "att", 
attrLocalName);
+        assertEquals("elementgetattributenodens01_attrNs", 
"http://www.w3.org/DOM/Level2";, attrNS);
+
+    }
+
+    /**
+     * 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/elementgetattributenodens01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens02.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,68 @@
+/*
+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.domts.DOMTestCase;
+
+import static org.junit.Assert.assertEquals;
+
+
+/**
+ * The method getAttributeNodeNS retrieves an Attr node by local name and 
namespace URI.
+ * Create a new element node and add a new attribute node to it.  Using the 
getAttributeNodeNS,
+ * retrieve the newly added attribute node and check its value.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAtNodeNS";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAtNodeNS</a>
+ */
+public class elementgetattributenodens02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        Attr attribute;
+        Attr newAttribute1;
+        String attrValue;
+        doc = load("staffNS", false);
+        element = doc.createElementNS("namespaceURI", "root");
+        attribute = doc.createAttributeNS("http://www.w3.org/DOM/Level2";, 
"l2:att");
+        newAttribute1 = element.setAttributeNodeNS(attribute);
+        attribute = element.getAttributeNodeNS("http://www.w3.org/DOM/Level2";, 
"att");
+        attrValue = attribute.getNodeValue();
+        assertEquals("elementgetattributenodens02", "", attrValue);
+
+    }
+
+    /**
+     * 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/elementgetattributenodens02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens03.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens03.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens03.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributenodens03.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-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.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 method getAttributeNodeNS retrieves an Attr node by local name and 
namespace URI.
+ * Using the getAttributeNodeNS, retrieve and verify the value of the default
+ * attribute node.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAtNodeNS";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAtNodeNS</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 elementgetattributenodens03 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        Attr attribute;
+        String attrValue;
+        NodeList childList;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        childList = doc.getElementsByTagNameNS("http://www.nist.gov";, 
"employee");
+        element = (Element) childList.item(1);
+        attribute = element.getAttributeNodeNS(nullNS, "defaultAttr");
+        attrValue = attribute.getNodeValue();
+        assertEquals("elementgetattributenodens03", "defaultVal", attrValue);
+
+    }
+
+    /**
+     * 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/elementgetattributenodens03";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributens02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributens02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributens02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetattributens02.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-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.assertEquals;
+
+
+/**
+ * The method getAttributeNS retrieves an attribute value by local name and 
namespace URI.
+ * Using the getAttributeNodeNS, retreive and verify the value of the default
+ * attribute node.
+ *
+ * @see <a 
href="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAttrNS";>http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElGetAttrNS</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 elementgetattributens02 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        String attrValue;
+        NodeList childList;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        childList = doc.getElementsByTagNameNS("http://www.nist.gov";, 
"employee");
+        element = (Element) childList.item(1);
+        attrValue = element.getAttributeNS(nullNS, "defaultAttr");
+        assertEquals("elementgetattributens02", "defaultVal", attrValue);
+
+    }
+
+    /**
+     * 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/elementgetattributens02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens02.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.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * The method getElementsByTagNameNS returns a NodeList of all the Elements 
with a given local
+ * name and namespace URI in the order in which they are encountered in a 
preorder traversal
+ * of the Document tree.
+ * Invoke getElementsByTagNameNS on the documentElement with values for 
namespaceURI '*' and
+ * localName '*'.  Verify if this returns a nodeList of 0 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 elementgetelementsbytagnamens02 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        element = doc.getDocumentElement();
+        elementList = element.getElementsByTagNameNS("**", "*");
+        assertSize("elementgetelementsbytagnamens02", 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/elementgetelementsbytagnamens02";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens04.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens04.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens04.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens04.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,81 @@
+/*
+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.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * Returns a NodeList of all the Elements with a given local name and 
namespace URI in the
+ * order in which they are encountered in a preorder traversal of the Document 
tree.
+ * Create a new element node ('root') and append three newly created child 
nodes (all have
+ * local name 'child' and defined in different namespaces).
+ * Test 1: invoke getElementsByTagNameNS to retrieve one of the children.
+ * Test 2: invoke getElementsByTagNameNS with the value of namespace equals to 
'*', and
+ * verify that the node list has length of 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>
+ * @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 elementgetelementsbytagnamens04 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        Element child1;
+        Element child2;
+        Element child3;
+        Node appendedChild;
+        NodeList elementList;
+        String nullNS = null;
+
+        doc = load("staffNS", false);
+        element = doc.createElementNS("http://www.w3.org/DOM";, "root");
+        child1 = doc.createElementNS("http://www.w3.org/DOM/Level1";, 
"dom:child");
+        child2 = doc.createElementNS(nullNS, "child");
+        child3 = doc.createElementNS("http://www.w3.org/DOM/Level2";, 
"dom:child");
+        appendedChild = element.appendChild(child1);
+        appendedChild = element.appendChild(child2);
+        appendedChild = element.appendChild(child3);
+        elementList = element.getElementsByTagNameNS(nullNS, "child");
+        assertSize("elementgetelementsbytagnamens04_1", 1, elementList);
+        elementList = element.getElementsByTagNameNS("*", "child");
+        assertSize("elementgetelementsbytagnamens04_2", 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/elementgetelementsbytagnamens04";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens05.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens05.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens05.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementgetelementsbytagnamens05.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.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.domts.DOMTestCase;
+
+
+/**
+ * Returns a NodeList of all the Elements with a given local name and 
namespace URI in the
+ * order in which they are encountered in a preorder traversal of the Document 
tree.
+ * Invoke getElementsByTagNameNS on the documentElement with the following 
values:
+ * namespaceURI: 'http://www.altavista.com'
+ * localName: '*'.
+ * Verify if this returns a nodeList of 1 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 elementgetelementsbytagnamens05 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        element = doc.getDocumentElement();
+        elementList = 
element.getElementsByTagNameNS("http://www.altavista.com";, "*");
+        assertSize("elementgetelementsbytagnamens05", 1, 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/elementgetelementsbytagnamens05";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute01.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute01.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute01.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute01.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,62 @@
+/*
+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.assertFalse;
+
+
+/**
+ * The method hasAttribute returns true when an attribute with a given name is 
specified
+ * on this element or has a default value, false otherwise
+ * Invoke the hasAttribute method to check if the documentElement has 
attributres.
+ *
+ * @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 elementhasattribute01 extends DOMTestCase {
+    @Test
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        boolean state;
+        doc = load("staff", false);
+        element = doc.getDocumentElement();
+        state = element.hasAttribute("");
+        assertFalse("elementhasattribute01", 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/elementhasattribute01";;
+    }
+
+}

Added: 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute02.java
URL: 
http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute02.java?rev=1896456&view=auto
==============================================================================
--- 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute02.java
 (added)
+++ 
xmlbeans/branches/gradle-build/src/test/java/org/w3c/domts/level2/core/elementhasattribute02.java
 Mon Dec 27 20:28:38 2021
@@ -0,0 +1,68 @@
+/*
+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 method hasAttribute returns true when an attribute with a given name is 
specified
+ * on this element or has a default value, false otherwise
+ * Invoke the hasAttribute method to on an element with default attributes and 
verify if it
+ * returns true.
+ *
+ * @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 elementhasattribute02 extends DOMTestCase {
+    @Test
+    @Ignore
+    public void testRun() throws Throwable {
+        Document doc;
+        Element element;
+        boolean state;
+        NodeList elementList;
+        doc = load("staffNS", false);
+        elementList = doc.getElementsByTagName("emp:employee");
+        element = (Element) elementList.item(0);
+        state = element.hasAttribute("defaultAttr");
+        assertTrue("elementhasattribute02", 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/elementhasattribute02";;
+    }
+
+}



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

Reply via email to