axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r331965 - /webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
Date Wed, 09 Nov 2005 06:52:44 GMT
Author: chinthaka
Date: Tue Nov  8 22:52:36 2005
New Revision: 331965

URL: http://svn.apache.org/viewcvs?rev=331965&view=rev
Log:
Checking in a partialy completed test case for default namespace fix

Added:
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java

Added: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java?rev=331965&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
(added)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/DefaultNamespaceTest.java
Tue Nov  8 22:52:36 2005
@@ -0,0 +1,37 @@
+package org.apache.axis2.om;
+
+import junit.framework.TestCase;
+
+import javax.xml.namespace.QName;
+
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * @author : Eran Chinthaka (chinthaka@apache.org)
+ */
+
+public class DefaultNamespaceTest extends TestCase {
+
+    public void testDefaultNamespace() {
+        OMFactory factory = OMAbstractFactory.getOMFactory();
+        OMElement foo = factory.createOMElement(new QName("http://defaultNsUri.org", "Foo"),
null);
+        OMElement bar = factory.createOMElement("Bar", null, foo);
+        OMElement baz = factory.createOMElement(new QName("http://defaultNsUri.org", "Baz"),
foo);
+
+
+        System.out.println("foo = " + foo);
+    }
+
+}



Mime
View raw message