Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-28577

Use LocaleUtil instead of Locale to get default locale in ServiceTestUtil

    Details

      Description

      The test util class ServiceTestUtil uses the class Locale to obtain the default locale. This returns the default system locale, which might not be the same as the portal default locale (obtained via LocaleUtil.getDefault()). Actually, if both are different (e.g es_ES and en_US), tests might fail since localised contents are created with the system default locale (es_ES) and then recovered null when using portal default locale (en_US).

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            eduardo.garcia Eduardo García
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 50 weeks, 5 days ago

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.30 EE GA3
                6.2.0 CE M2