Author: chinthaka
Date: Wed Jul 26 06:42:29 2006
New Revision: 425733

URL: http://svn.apache.org/viewvc?rev=425733&view=rev
Log:
Checking in the commented out testcase

Modified:
    
webservices/commons/trunk/modules/axiom/test/org/apache/axiom/om/NamespaceTest.java

Modified: 
webservices/commons/trunk/modules/axiom/test/org/apache/axiom/om/NamespaceTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/test/org/apache/axiom/om/NamespaceTest.java?rev=425733&r1=425732&r2=425733&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/test/org/apache/axiom/om/NamespaceTest.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/test/org/apache/axiom/om/NamespaceTest.java
 Wed Jul 26 06:42:29 2006
@@ -161,7 +161,7 @@
         OMXMLParserWrapper builder = 
OMXMLBuilderFactory.createStAXOMBuilder(OMAbstractFactory.getOMFactory(), 
parser);
         OMElement root = builder.getDocumentElement();
         String actualXML = root.toString();
-        assertTrue(actualXML.indexOf("xmlns=\"\"")!=-1);
+        assertTrue(actualXML.indexOf("xmlns=\"\"") != -1);
     }
 
     public void testNamespaceProblem5() {
@@ -177,7 +177,7 @@
         }
     }
 
-    private int getNumberOfOccurrences(String xml, String pattern){
+    private int getNumberOfOccurrences(String xml, String pattern) {
         int index = -1;
         int count = 0;
         while ((index = xml.indexOf(pattern, index + 1)) != -1) {
@@ -186,6 +186,34 @@
 
         return count;
     }
+
+//    public void testNamespaceProblem6() {
+//        OMFactory fac = OMAbstractFactory.getOMFactory();
+//        //TODO: Find the constants for "Parameter" and "name"
+//        OMElement paramElement = fac.createOMElement("Parameter", null);
+//        OMNamespace ns = paramElement.declareDefaultNamespace("");
+//        paramElement.addAttribute(fac.createOMAttribute("name", null, 
"someName"));
+//
+//
+//        for (int i = 0; i < 5; i++) {
+//            // Create the action element
+//            OMElement actionElem = fac.createOMElement(
+//                    "Action", ns);
+//
+//            for (int j = 0; j < 5; j++) {
+//                // Create an element with the name of the key
+//                OMElement elem = fac.createOMElement("someKey"+j, ns);
+//                // Set the text value of the element
+//                elem.setText("someValue"+j);
+//                // Add the element as a child of this action element
+//                actionElem.addChild(elem);
+//            }
+//
+//            paramElement.addChild(actionElem);
+//        }
+//
+//        System.out.println("paramElement = " + paramElement);
+//    }
 
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to