jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1136097 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Wed, 15 Jun 2011 15:53:24 GMT
Author: mduerig
Date: Wed Jun 15 15:53:24 2011
New Revision: 1136097

URL: http://svn.apache.org/viewvc?rev=1136097&view=rev
Log:
spi2microkernel prototype (WIP)
tests

Modified:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java?rev=1136097&r1=1136096&r2=1136097&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Wed Jun 15 15:53:24 2011
@@ -547,19 +547,20 @@ public class RepositoryTest {
         }
     }
 
-    @Ignore // todo set element type
+    @Ignore // todo set element type, but see JCR-2992
     @Test
     public void addEmptyMultiValuedProperty() throws RepositoryException {
         Node parentNode = getNode(testPath);
         Value[] values = new Value[0];
 
-        parentNode.setProperty("multi empty", values);
+        parentNode.setProperty("multi empty", values, PropertyType.BOOLEAN);
         parentNode.getSession().save();
 
         Session session2 = getRepository().login();
         try {
             Property property = session2.getProperty(testPath + "/multi empty");
             assertTrue(property.isMultiple());
+            assertEquals(PropertyType.BOOLEAN, property.getType());
             Value[] values2 = property.getValues();
             assertEquals(0, values.length);
         }



Mime
View raw message