jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1485084 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 22 May 2013 06:36:09 GMT
Author: jukka
Date: Wed May 22 06:36:09 2013
New Revision: 1485084

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

Remove test that explicitly expects the wrong behavior

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=1485084&r1=1485083&r2=1485084&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
Wed May 22 06:36:09 2013
@@ -986,26 +986,6 @@ public class RepositoryTest extends Abst
     }
 
     @Test
-    public void testEmptyMultiValuedPropertyType() throws RepositoryException {
-        Node parentNode = getNode(TEST_PATH);
-        Value[] values = new Value[0];
-
-        parentNode.setProperty("multi empty", values, PropertyType.BOOLEAN);
-        parentNode.getSession().save();
-
-        Session session2 = createAnonymousSession();
-        try {
-            Property property = session2.getProperty(TEST_PATH + "/multi empty");
-            assertTrue(property.isMultiple());
-            assertEquals(PropertyType.STRING, property.getType());
-            Value[] values2 = property.getValues();
-            assertEquals(0, values2.length);
-        } finally {
-            session2.logout();
-        }
-    }
-
-    @Test
     public void addMultiValuedStringWithNull() throws RepositoryException {
         Node parentNode = getNode(TEST_PATH);
         Value[] values = new Value[3];



Mime
View raw message