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

DepotPanelAppControllerTest#testGetPanelAppsShowsOnlyDocumentsAndMediaAndWebContentInTheContentCategoryForADepotGroup -test failed

    Details

      Description

      Spira

      Jenkins

      Note: This test is for the content category should have two apps DM and WC, for now, the translations app has moved to content after this commit. I think we should update the backend test. 

      backend test:

      @[email protected] public void testGetPanelAppsShowsOnlyDocumentsAndMediaAndWebContentInTheContentCategoryForADepotGroup() throws Exception {
       List<PanelApp> panelApps = _panelAppRegistry.getPanelApps( PanelCategoryKeys.SITE_ADMINISTRATION_CONTENT, PermissionThreadLocal.getPermissionChecker(), _groupLocalService.getGroup(_depotEntry.getGroupId()));
       Assert.assertEquals(panelApps.toString(), 2, panelApps.size());
       _assertPanelAppsContain( panelApps, DLPortletKeys.DOCUMENT_LIBRARY_ADMIN); 
       _assertPanelAppsContain(panelApps, JournalPortletKeys.JOURNAL); }
       

      Assert.assertEquals(panelApps.toString(), 2, panelApps.size()); 

      Console error:

       java.lang.AssertionError: [com.liferay.depot.web.in[email protected]54a50d3a, com.liferay.depot.web.in[email protected]6df1917e, com.liferay.depot.web.in[email protected]922a57b] expected:<2> but was:<3>
           [exec]     	at org.junit.Assert.fail(Assert.java:89)
           [exec]     	at org.junit.Assert.failNotEquals(Assert.java:835)
           [exec]     	at org.junit.Assert.assertEquals(Assert.java:647)
           [exec]     	at com.liferay.depot.web.internal.application.list.test.DepotPanelAppControllerTest.testGetPanelAppsShowsOnlyDocumentsAndMediaAndWebContentInTheContentCategoryForADepotGroup(DepotPanelAppControllerTest.java:108)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable. 

        Attachments

          Activity

            People

            Assignee:
            jeremy.chen Jeremy Chen
            Reporter:
            jeremy.chen Jeremy Chen
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Alejandro Tardín
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 3 days ago

                Packages

                Version Package
                7.4.13 DXP GA1
                Master