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

Unable to run Search unit tests from Eclipse due to PropsValues reference

    Details

      Description

      Steps to reproduce 1

      1. Open Eclipse
      2. Import portal-search-elasticsearch (or portal-search-solr)
        1. Run gradlew eclipse from the module root to generate the Eclipse metadata files)
      3. Navigate > Open Type > StatisticsTest
      4. Run > Run As > JUnit Test
        Expected: Test passes.
        Observed:
        java.lang.ExceptionInInitializerError
         at com.liferay.portal.util.PropsValues.<clinit>(PropsValues.java:29)
         at com.liferay.portal.search.elasticsearch.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:135)
         [...]
         Caused by: java.lang.NullPointerException
         at com.liferay.portal.util.PropsUtil._get(PropsUtil.java:217)
         at com.liferay.portal.util.PropsUtil.<init>(PropsUtil.java:177)
         at com.liferay.portal.util.PropsUtil.<clinit>(PropsUtil.java:344)
        

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.0 DXP FP28
                7.0.0 DXP FP30
                7.0.X EE
                7.0.4 CE GA5
                Master