jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1298015 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/json/fast/JsopObjectTest.java
Date Wed, 07 Mar 2012 16:41:22 GMT
Author: thomasm
Date: Wed Mar  7 16:41:21 2012
New Revision: 1298015

URL: http://svn.apache.org/viewvc?rev=1298015&view=rev
Log:
Support JsopArray.iterator() (as per Dominiques request :-)

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/json/fast/JsopObjectTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/json/fast/JsopObjectTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/json/fast/JsopObjectTest.java?rev=1298015&r1=1298014&r2=1298015&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/json/fast/JsopObjectTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/mk/json/fast/JsopObjectTest.java
Wed Mar  7 16:41:21 2012
@@ -100,6 +100,11 @@ public class JsopObjectTest extends Test
         } catch (IndexOutOfBoundsException e) {
             // expected
         }
+        String s = "";
+        for(Object o : a) {
+            s += o + ";";
+        }
+        assertEquals("1;null;Hello;[];{};", s);
     }
 
     public void testArrayLazyInit() {



Mime
View raw message