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

Unit tests failing for SyncDLObjectUpdateTest

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.X
    • Fix Version/s: 7.0.X
    • Component/s: Sync Connector
    • Labels:
      None

      Description

      SyncDLObjectUpdateTest unit test is failing with the following error:

      :apps:sync:sync-test:compileTestJava
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:17: error: package com.liferay.portal.configuration does not exist
      import com.liferay.portal.configuration.ConfigurationFactoryImpl;
                                             ^
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:18: error: package com.liferay.portal.json does not exist
      import com.liferay.portal.json.JSONFactoryImpl;
                                    ^
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:19: error: package com.liferay.portal.kernel.configuration does not exist
      import com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil;
                                                    ^
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:20: error: cannot find symbol
      import com.liferay.portal.kernel.json.JSONFactoryUtil;
                                           ^
        symbol:   class JSONFactoryUtil
        location: package com.liferay.portal.kernel.json
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:21: error: package com.liferay.portal.kernel.portlet does not exist
      import com.liferay.portal.kernel.portlet.PortletClassLoaderUtil;
                                              ^
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:22: error: package com.liferay.portal.kernel.util does not exist
      import com.liferay.portal.kernel.util.StringPool;
                                           ^
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:42: error: cannot find symbol
                              new ConfigurationFactoryImpl());
                                  ^
        symbol:   class ConfigurationFactoryImpl
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:41: error: cannot find symbol
                      ConfigurationFactoryUtil.setConfigurationFactory(
                      ^
        symbol:   variable ConfigurationFactoryUtil
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:44: error: cannot find symbol
                      JSONFactoryUtil jsonFactoryUtil = new JSONFactoryUtil();
                      ^
        symbol:   class JSONFactoryUtil
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:44: error: cannot find symbol
                      JSONFactoryUtil jsonFactoryUtil = new JSONFactoryUtil();
                                                            ^
        symbol:   class JSONFactoryUtil
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:46: error: cannot find symbol
                      jsonFactoryUtil.setJSONFactory(new JSONFactoryImpl());
                                                         ^
        symbol:   class JSONFactoryImpl
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:48: error: cannot find symbol
                      PortletClassLoaderUtil.setServletContextName("sync-web");
                      ^
        symbol:   variable PortletClassLoaderUtil
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:55: error: cannot access BaseModelImpl
                      SyncDLObject syncDLObject = new SyncDLObjectImpl();
                                                  ^
        class file for com.liferay.portal.kernel.model.impl.BaseModelImpl not found
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:57: error: cannot access BaseModel
                      syncDLObject.setDescription(
                                  ^
        class file for com.liferay.portal.kernel.model.BaseModel not found
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:59: error: cannot access ShardedModel
                      syncDLObject.setLockExpirationDate(new Date());
                                  ^
        class file for com.liferay.portal.kernel.model.ShardedModel not found
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:68: error: cannot find symbol
                      String expectedJSON = JSONFactoryUtil.looseSerializeDeep(
                                            ^
        symbol:   variable JSONFactoryUtil
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:74: error: cannot find symbol
                              expectedJSON.replace(StringPool.SPACE, StringPool.BLANK),
                                                   ^
        symbol:   variable StringPool
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:74: error: cannot find symbol
                              expectedJSON.replace(StringPool.SPACE, StringPool.BLANK),
                                                                     ^
        symbol:   variable StringPool
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:75: error: cannot find symbol
                              actualJSON.replace(StringPool.SPACE, StringPool.BLANK));
                                                 ^
        symbol:   variable StringPool
        location: class SyncDLObjectUpdateTest
      /Users/deju/Desktop/dev/liferay/7.0.x/portal/modules/apps/sync/sync-test/src/test/java/com/liferay/sync/util/SyncDLObjectUpdateTest.java:75: error: cannot find symbol
                              actualJSON.replace(StringPool.SPACE, StringPool.BLANK));
                                                                   ^
        symbol:   variable StringPool
        location: class SyncDLObjectUpdateTest
      20 errors
      :apps:sync:sync-test:compileTestJava FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':apps:sync:sync-test:compileTestJava'.
      > Compilation failed; see the compiler error output for details.
      

        Attachments

          Activity

            People

            Assignee:
            brian.wulbern Brian Wulbern
            Reporter:
            dennis.ju Dennis Ju
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 17 weeks ago

                Packages

                Version Package
                7.0.X