jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1421813 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Fri, 14 Dec 2012 12:23:46 GMT
Author: angela
Date: Fri Dec 14 12:23:41 2012
New Revision: 1421813

URL: http://svn.apache.org/viewvc?rev=1421813&view=rev
Log:
OAK-510: add test (marked with @ignore)

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=1421813&r1=1421812&r2=1421813&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
Fri Dec 14 12:23:41 2012
@@ -724,6 +724,29 @@ public class RepositoryTest extends Abst
         }
     }
 
+    @Ignore("OAK-510") // FIXME: OAK-510
+    @Test
+    public void addEmptyMultiValueName() throws RepositoryException {
+        Node parentNode = getNode(TEST_PATH);
+        Value[] values = new Value[0];
+
+        parentNode.setProperty("multi name", values);
+        parentNode.getSession().save();
+
+        Session session2 = createAnonymousSession();
+        try {
+            Property property = session2.getProperty(TEST_PATH + "/multi name");
+            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]);
+        } finally {
+            session2.logout();
+        }
+    }
+
     @Test
     public void addPathProperty() throws RepositoryException, IOException {
         Node parentNode = getNode(TEST_PATH);



Mime
View raw message