jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1461560 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 27 Mar 2013 13:06:45 GMT
Author: mreutegg
Date: Wed Mar 27 13:06:44 2013
New Revision: 1461560

URL: http://svn.apache.org/r1461560
Log:
OAK-722: Type conversion broken
- adding test case (currently ignored)

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=1461560&r1=1461559&r2=1461560&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 Mar 27 13:06:44 2013
@@ -1132,6 +1132,18 @@ public class RepositoryTest extends Abst
     }
 
     @Test
+    @Ignore
+    public void setPropertyWithConversion() throws RepositoryException {
+        Node n = getNode(TEST_PATH);
+        Node file = n.addNode("file", "nt:file");
+        Node content = file.addNode("jcr:content", "nt:resource");
+        content.setProperty("jcr:lastModified", System.currentTimeMillis());
+        content.setProperty("jcr:data", new ByteArrayInputStream("foo".getBytes()));
+        content.setProperty("jcr:mimeType", "text/plain");
+        n.getSession().save();
+    }
+
+    @Test
     public void removeProperty() throws RepositoryException {
         Node parentNode = getNode(TEST_PATH);
         parentNode.setProperty("newProperty", "some value");



Mime
View raw message