jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1537036 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 30 Oct 2013 10:57:03 GMT
Author: mduerig
Date: Wed Oct 30 10:57:02 2013
New Revision: 1537036

URL: http://svn.apache.org/r1537036
Log:
OAK-1111: Node#setProperty(String, Calendar) doesn't take time zone in account
@Ignored test case demonstrating broken conversion from long to date

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=1537036&r1=1537035&r2=1537036&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 Oct 30 10:57:02 2013
@@ -1154,11 +1154,16 @@ public class RepositoryTest extends Abst
     }
 
     @Test
+    @Ignore("OAK-1111")  // FIXME OAK-1111
     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());
+
+        long value = System.currentTimeMillis();
+        Property property = content.setProperty("jcr:lastModified", value);
+        assertEquals(value, property.getDate().getTimeInMillis());
+
         content.setProperty("jcr:data", new ByteArrayInputStream("foo".getBytes()));
         content.setProperty("jcr:mimeType", "text/plain");
         n.getSession().save();



Mime
View raw message