axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r355805 - /webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/xpath/XPathTestBase.java
Date Sat, 10 Dec 2005 23:39:46 GMT
Author: chinthaka
Date: Sat Dec 10 15:39:35 2005
New Revision: 355805

URL: http://svn.apache.org/viewcvs?rev=355805&view=rev
Log:
Un-Commenting the commented test case.

Modified:
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/xpath/XPathTestBase.java

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/xpath/XPathTestBase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/xpath/XPathTestBase.java?rev=355805&r1=355804&r2=355805&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/xpath/XPathTestBase.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/xpath/XPathTestBase.java
Sat Dec 10 15:39:35 2005
@@ -1535,29 +1535,29 @@
 
     /* test cases for the lang() function
     */
-//    public void testid55485() throws JaxenException
-//    {
-//        Navigator nav = getNavigator();
-//        String url = TESTS_ROOT + "xml/lang.xml";
-//        log("Document [" + url + "]");
-//        Object document = nav.getDocument(url);
-//        XPath contextpath = new BaseXPath("/", nav);
-//        log("Initial Context :: " + contextpath);
-//        List list = contextpath.selectNodes(document);
-//        Iterator iter = list.iterator();
-//        while (iter.hasNext())
-//        {
-//            Object context = iter.next();
-//            assertCountXPath(0, context, "/e1/e2[lang('hr')]");
-////            assertCountXPath(1, context, "/e1/e2/e3[lang('en')]");
-////            assertCountXPath(1, context, "/e1/e2/e3[lang('en-US')]");
-//            assertCountXPath(0, context, "/e1/e2/e3[lang('en-GB')]");
-//            assertCountXPath(2, context, "/e1/e2/e3[lang('hu')]");
-//            assertCountXPath(0, context, "/e1/e2/e3[lang('hu-HU')]");
-//            assertCountXPath(1, context, "/e1/e2/e3[lang('es')]");
-//            assertCountXPath(0, context, "/e1/e2/e3[lang('es-BR')]");
-//        }
-//    }
+    public void testid55485() throws JaxenException
+    {
+        Navigator nav = getNavigator();
+        String url = TESTS_ROOT + "xml/lang.xml";
+        log("Document [" + url + "]");
+        Object document = nav.getDocument(url);
+        XPath contextpath = new BaseXPath("/", nav);
+        log("Initial Context :: " + contextpath);
+        List list = contextpath.selectNodes(document);
+        Iterator iter = list.iterator();
+        while (iter.hasNext())
+        {
+            Object context = iter.next();
+            assertCountXPath(0, context, "/e1/e2[lang('hr')]");
+//            assertCountXPath(1, context, "/e1/e2/e3[lang('en')]");
+//            assertCountXPath(1, context, "/e1/e2/e3[lang('en-US')]");
+            assertCountXPath(0, context, "/e1/e2/e3[lang('en-GB')]");
+            assertCountXPath(2, context, "/e1/e2/e3[lang('hu')]");
+            assertCountXPath(0, context, "/e1/e2/e3[lang('hu-HU')]");
+            assertCountXPath(1, context, "/e1/e2/e3[lang('es')]");
+            assertCountXPath(0, context, "/e1/e2/e3[lang('es-BR')]");
+        }
+    }
 
     /* test namespace
     */



Mime
View raw message