Author: dkatayev
Date: 2010-07-01 03:29:29 -0400 (Thu, 01 Jul 2010)
New Revision: 2729
Modified:
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
Log:
EXOJCR-774 filing
testNotModifiedSince(org.exoplatform.services.jcr.webdav.ext.TestCaching) fixed. The
problem occured when rolling back date.
Modified:
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
===================================================================
---
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-07-01
07:13:18 UTC (rev 2728)
+++
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-07-01
07:29:29 UTC (rev 2729)
@@ -65,9 +65,9 @@
SimpleDateFormat dateFormat = new
SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN);
Calendar lastModifiedDate = lastModifiedProperty.getDate();
-
- lastModifiedDate.roll(Calendar.WEEK_OF_MONTH, -1);
- // Rollback If-Modified-Since date a week earlier.
+
+ lastModifiedDate.roll(Calendar.SECOND, -10);
+ // Rollback If-Modified-Since 10 seconds earlier.
String ifModifiedDate = dateFormat.format(lastModifiedDate.getTime());
MultivaluedMap<String, String> headers = new MultivaluedMapImpl();
Show replies by date