Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Pulsar
-
Platform Sprint 142
Description
Three methods in org.onehippo.cms7.services.search.query.QueryTest are testing the org.onehippo.cms7.services.search.query.constraint.DateConstraint#toString method that is uses DateFormat.getDateInstance() which is JVM dependant.
This failed for my local JVM:
org.junit.ComparisonFailure: Expected : of type hippo:document select author where (text title contains ard) and (text [any] contains haha) and ((int count <= 5) or (date publicationDate >= Sep 28, 2012, resolution = DAY)) Actual : of type hippo:document select author where (text title contains ard) and (text [any] contains haha) and ((int count <= 5) or (date publicationDate >= 28-sep-2012, resolution = DAY))
I'm pretty sure this is no functional code.