elharo commented on code in PR #106:
URL: https://github.com/apache/xerces-j/pull/106#discussion_r3547060965
##########
tests/dom/serialize/TestXmlns.java:
##########
@@ -45,64 +45,37 @@
* @author Elena Litani, IBM
* @version $Id$
*/
-public class TestXmlns implements DOMErrorHandler{
+public class TestXmlns extends TestCase implements DOMErrorHandler{
- public static void main(String[] args) {
-
- // Create a document.
+ public void testXmlnsSerialization() throws Exception {
DocumentImpl document = new DocumentImpl();
document.setXmlEncoding("utf-8");
- // Create an element with a default namespace declaration.
Element outerNode = document.createElement("outer");
outerNode.setAttribute("xmlns", "myuri:");
document.appendChild(outerNode);
-
- // Create an inner element with no further namespace declaration.
Review Comment:
keep this comment
##########
tests/dom/serialize/TestXmlns.java:
##########
@@ -45,64 +45,37 @@
* @author Elena Litani, IBM
* @version $Id$
*/
-public class TestXmlns implements DOMErrorHandler{
+public class TestXmlns extends TestCase implements DOMErrorHandler{
- public static void main(String[] args) {
-
- // Create a document.
+ public void testXmlnsSerialization() throws Exception {
DocumentImpl document = new DocumentImpl();
document.setXmlEncoding("utf-8");
- // Create an element with a default namespace declaration.
Element outerNode = document.createElement("outer");
outerNode.setAttribute("xmlns", "myuri:");
document.appendChild(outerNode);
-
- // Create an inner element with no further namespace declaration.
Element innerNode = document.createElement("inner");
outerNode.appendChild(innerNode);
- // DOM is complete, now serialize it.
Review Comment:
keep this comment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]