jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r428298 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/SetValueDateTest.java
Date Thu, 03 Aug 2006 10:04:20 GMT
Author: mreutegg
Date: Thu Aug  3 03:04:19 2006
New Revision: 428298

URL: http://svn.apache.org/viewvc?rev=428298&view=rev
Log:
JCR-503: TCK: SetValueDateTest compares Calendar objects

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/SetValueDateTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/SetValueDateTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/SetValueDateTest.java?rev=428298&r1=428297&r2=428298&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/SetValueDateTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/SetValueDateTest.java
Thu Aug  3 03:04:19 2006
@@ -79,7 +79,7 @@
     public void testDateSession() throws RepositoryException {
         property1.setValue(value);
         superuser.save();
-        assertEquals("Date node property not saved", value.getDate(), property1.getValue().getDate());
+        assertEquals("Date node property not saved", value, property1.getValue());
     }
 
     /**
@@ -89,7 +89,8 @@
     public void testDateParent() throws RepositoryException {
         property1.setValue(value.getDate());
         node.save();
-        assertEquals("Date node property not saved", value.getDate(), property1.getValue().getDate());
+        Value orig = superuser.getValueFactory().createValue(value.getDate());
+        assertEquals("Date node property not saved", orig, property1.getValue());
     }
 
     /**



Mime
View raw message