jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1146648 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Thu, 14 Jul 2011 11:06:32 GMT
Author: mduerig
Date: Thu Jul 14 11:06:32 2011
New Revision: 1146648

URL: http://svn.apache.org/viewvc?rev=1146648&view=rev
Log:
spi2microkernel (WIP)
- test: big binary property

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=1146648&r1=1146647&r2=1146648&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
Thu Jul 14 11:06:32 2011
@@ -24,6 +24,7 @@ import org.apache.jackrabbit.mk.json.Jso
 import org.apache.jackrabbit.spi.commons.name.NameConstants;
 import org.apache.jackrabbit.spi2microkernel.util.Arrays;
 import org.apache.jackrabbit.spi2microkernel.util.Loop;
+import org.apache.jackrabbit.spi2microkernel.util.NumberStream;
 import org.apache.jackrabbit.spi2microkernel.util.Paths;
 import org.junit.After;
 import org.junit.Before;
@@ -571,6 +572,15 @@ public class RepositoryTest {
     }
 
     @Test
+    @Ignore  // fixme improve handling of binary properties
+    public void addBigBinaryProperty() throws RepositoryException {
+        Node parentNode = getNode(testPath);
+        InputStream is = new NumberStream(123456);
+        Binary bin = getSession().getValueFactory().createBinary(is);
+        addProperty(parentNode, "bigBinary", getSession().getValueFactory().createValue(bin));
+    }
+
+    @Test
     public void addMultiValuedBinary() throws RepositoryException {
         Node parentNode = getNode(testPath);
         Value[] values = new Value[2];



Mime
View raw message