Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-10508

Search service: test failure if JVM Locale is not English, on non-functional toString()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • search-service-3.2.0
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: