Class BasePortletExportImportTestCase

java.lang.Object
com.liferay.exportimport.test.util.lar.BaseExportImportTestCase
com.liferay.exportimport.test.util.lar.BasePortletExportImportTestCase

public abstract class BasePortletExportImportTestCase extends BaseExportImportTestCase
  • Constructor Details

    • BasePortletExportImportTestCase

      public BasePortletExportImportTestCase()
  • Method Details

    • getNamespace

      public String getNamespace()
    • getPortletId

      public String getPortletId() throws Exception
      Throws:
      Exception
    • testExportImportAssetLinks

      public void testExportImportAssetLinks() throws Exception
      Throws:
      Exception
    • testExportImportDeletions

      public void testExportImportDeletions() throws Exception
      Throws:
      Exception
    • testExportImportDisplayStyleFromCurrentGroup

      public void testExportImportDisplayStyleFromCurrentGroup() throws Exception
      Throws:
      Exception
    • testExportImportDisplayStyleFromDifferentGroup

      public void testExportImportDisplayStyleFromDifferentGroup() throws Exception
      Throws:
      Exception
    • testExportImportDisplayStyleFromGlobalScope

      public void testExportImportDisplayStyleFromGlobalScope() throws Exception
      Throws:
      Exception
    • testExportImportDisplayStyleFromLayoutScope

      public void testExportImportDisplayStyleFromLayoutScope() throws Exception
      Throws:
      Exception
    • testExportImportInvalidAvailableLocales

      public void testExportImportInvalidAvailableLocales() throws Exception
      Throws:
      Exception
    • testExportImportValidAvailableLocales

      public void testExportImportValidAvailableLocales() throws Exception
      Throws:
      Exception
    • testUpdateLastPublishDate

      public void testUpdateLastPublishDate() throws Exception
      Throws:
      Exception
    • testVersioning1

      public void testVersioning1() throws Exception
      Throws:
      Exception
    • testVersioning2

      public void testVersioning2() throws Exception
      Throws:
      Exception
    • testVersioningDeleteFirst

      public void testVersioningDeleteFirst() throws Exception
      Throws:
      Exception
    • testVersioningDeleteLatest

      public void testVersioningDeleteLatest() throws Exception
      Throws:
      Exception
    • testVersioningExportImportTwice

      public void testVersioningExportImportTwice() throws Exception
      Throws:
      Exception
    • addParameter

      protected void addParameter(Map<String,String[]> parameterMap, String name, boolean value)
    • addVersion

      protected com.liferay.portal.kernel.model.StagedModel addVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception
      Throws:
      Exception
    • deleteFirstVersion

      protected void deleteFirstVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception
      Throws:
      Exception
    • deleteLatestVersion

      protected void deleteLatestVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception
      Throws:
      Exception
    • exportImportPortlet

      protected void exportImportPortlet(String portletId) throws Exception
      Throws:
      Exception
    • exportImportPortlet

      protected void exportImportPortlet(String portletId, boolean portletStagingInProcess) throws Exception
      Throws:
      Exception
    • exportImportPortlet

      protected void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap) throws Exception
      Throws:
      Exception
    • exportImportPortlet

      protected void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap, boolean portletStagingInProcess) throws Exception
      Throws:
      Exception
    • exportPortlet

      protected void exportPortlet(String portletId, com.liferay.portal.kernel.model.Layout layout) throws Exception
      Throws:
      Exception
    • exportPortlet

      protected void exportPortlet(String portletId, Map<String,String[]> exportParameterMap, boolean portletStagingInProcess, com.liferay.portal.kernel.model.Layout layout) throws Exception
      Throws:
      Exception
    • getImportedPortletPreferences

      protected javax.portlet.PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap) throws Exception
      Throws:
      Exception
    • getImportedPortletPreferences

      protected javax.portlet.PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap, boolean portletStagingInProcess) throws Exception
      Throws:
      Exception
    • importPortlet

      protected void importPortlet(String portletId, com.liferay.portal.kernel.model.Layout layout) throws Exception
      Throws:
      Exception
    • importPortlet

      protected void importPortlet(String portletId, Map<String,String[]> importParameterMap, boolean portletStagingInProcess, com.liferay.portal.kernel.model.Layout layout) throws Exception
      Throws:
      Exception
    • isVersioningEnabled

      protected boolean isVersioningEnabled()
    • publishPortlet

      protected void publishPortlet(String portletId) throws Exception
      Throws:
      Exception
    • testExportImportAvailableLocales

      protected void testExportImportAvailableLocales(Collection<Locale> sourceAvailableLocales, Collection<Locale> targetAvailableLocales, boolean expectFailure) throws Exception
      Throws:
      Exception
    • testExportImportDisplayStyle

      protected void testExportImportDisplayStyle(long displayStyleGroupId, String scopeType) throws Exception
      Throws:
      Exception
    • validateImportedLinks

      protected void validateImportedLinks(com.liferay.portal.kernel.model.StagedModel originalStagedModel, com.liferay.portal.kernel.model.StagedModel importedStagedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateVersions

      protected void validateVersions() throws Exception
      Throws:
      Exception