jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1484866 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Tue, 21 May 2013 16:40:50 GMT
Author: mduerig
Date: Tue May 21 16:40:49 2013
New Revision: 1484866

URL: http://svn.apache.org/r1484866
Log:
OAK-510: Multivalued properties with array size 0 forget their type
correct test case

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java?rev=1484866&r1=1484865&r2=1484866&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Tue May 21 16:40:49 2013
@@ -792,7 +792,7 @@ public class RepositoryTest extends Abst
         Node parentNode = getNode(TEST_PATH);
         Value[] values = new Value[0];
 
-        parentNode.setProperty("multi name", values);
+        parentNode.setProperty("multi name", values, PropertyType.NAME);
         parentNode.getSession().save();
 
         Session session2 = createAnonymousSession();
@@ -801,9 +801,7 @@ public class RepositoryTest extends Abst
             assertTrue(property.isMultiple());
             assertEquals(PropertyType.NAME, property.getType());
             Value[] values2 = property.getValues();
-            assertEquals(values.length, values2.length);
-            assertEquals(values[0], values2[0]);
-            assertEquals(values[1], values2[1]);
+            assertEquals(0, values2.length);
         } finally {
             session2.logout();
         }



Mime
View raw message