Class BasePortletDataHandlerTestCase

java.lang.Object
com.liferay.exportimport.test.util.lar.BasePortletDataHandlerTestCase

public abstract class BasePortletDataHandlerTestCase extends Object
  • Field Details

    • missingReferencesElement

      protected com.liferay.portal.kernel.xml.Element missingReferencesElement
    • portletDataContext

      protected com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext
    • portletDataHandler

      protected com.liferay.exportimport.kernel.lar.PortletDataHandler portletDataHandler
    • portletId

      protected String portletId
    • rootElement

      protected com.liferay.portal.kernel.xml.Element rootElement
    • stagingGroup

      @DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group stagingGroup
    • zipWriter

      protected com.liferay.portal.kernel.zip.ZipWriter zipWriter
  • Constructor Details

    • BasePortletDataHandlerTestCase

      public BasePortletDataHandlerTestCase()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testAddDefaultData

      public void testAddDefaultData() throws Exception
      Throws:
      Exception
    • testDataLevel

      public void testDataLevel()
    • testDeleteData

      public void testDeleteData() throws Exception
      Throws:
      Exception
    • testExportImportData

      public void testExportImportData() throws Exception
      Throws:
      Exception
    • testGetDataPortletPreferences

      public void testGetDataPortletPreferences()
    • testGetExportConfigurationPortletDataHandlerControls

      public void testGetExportConfigurationPortletDataHandlerControls() throws Exception
      Throws:
      Exception
    • testGetExportMetadataPortletDataHandlerControls

      public void testGetExportMetadataPortletDataHandlerControls() throws Exception
      Throws:
      Exception
    • testGetExportModelCount

      public void testGetExportModelCount() throws Exception
      Throws:
      Exception
    • testGetExportPortletDataHandlerControls

      public void testGetExportPortletDataHandlerControls() throws Exception
      Throws:
      Exception
    • testGetImportConfigurationPortletDataHandlerControls

      public void testGetImportConfigurationPortletDataHandlerControls()
    • testGetImportMetadataPortletDataHandlerControls

      public void testGetImportMetadataPortletDataHandlerControls() throws Exception
      Throws:
      Exception
    • testGetImportPortletDataHandlerControls

      public void testGetImportPortletDataHandlerControls() throws Exception
      Throws:
      Exception
    • testGetStagingPortletDataHandlerControls

      public void testGetStagingPortletDataHandlerControls()
    • testIsDataPortalLevel

      public void testIsDataPortalLevel()
    • testIsDataPortletInstanceLevel

      public void testIsDataPortletInstanceLevel()
    • testIsDataSiteLevel

      public void testIsDataSiteLevel()
    • testIsDisplayPortlet

      public void testIsDisplayPortlet()
    • testPrepareManifestSummary

      public void testPrepareManifestSummary() throws Exception
      Throws:
      Exception
    • testValidateSchemaVersion

      public void testValidateSchemaVersion()
    • addBooleanParameter

      protected void addBooleanParameter(Map<String,String[]> parameterMap, String namespace, String name, boolean value)
    • addParameters

      protected void addParameters(Map<String,String[]> parameterMap)
    • addStagedModels

      protected abstract void addStagedModels() throws Exception
      Throws:
      Exception
    • checkManifestSummary

      protected void checkManifestSummary(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary)
    • checkManifestSummaryReferrerClassNames

      protected void checkManifestSummaryReferrerClassNames(com.liferay.exportimport.kernel.lar.ManifestSummary manifestSummary)
    • getDataLevel

      protected com.liferay.exportimport.kernel.lar.DataLevel getDataLevel()
    • getDataPortletPreferences

      protected String[] getDataPortletPreferences()
    • getEndDate

      protected Date getEndDate()
    • getExportConfigurationPortletDataHandlerControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportConfigurationPortletDataHandlerControls(long companyId, long groupId, com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] portletDataHandlerControls, long plid, boolean privateLayout)
    • getExportMetadataPortletDataHandlerControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportMetadataPortletDataHandlerControls()
    • getExportModelCount

      protected long getExportModelCount()
    • getExportPortletDataHandlerControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportPortletDataHandlerControls()
    • getImportMetadataPortletDataHandlerControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportMetadataPortletDataHandlerControls()
    • getImportPortletDataHandlerControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportPortletDataHandlerControls()
    • getPortletDataHandler

      protected com.liferay.exportimport.kernel.lar.PortletDataHandler getPortletDataHandler(String portletId)
    • getPortletId

      protected abstract String getPortletId()
    • getSchemaVersion

      protected String getSchemaVersion()
    • getStagedModels

      protected List<com.liferay.portal.kernel.model.StagedModel> getStagedModels()
    • getStagingPortletDataHandlerControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getStagingPortletDataHandlerControls()
    • getStartDate

      protected Date getStartDate()
    • initContext

      protected void initContext() throws Exception
      Throws:
      Exception
    • isDataPortalLevel

      protected boolean isDataPortalLevel()
    • isDataPortletInstanceLevel

      protected boolean isDataPortletInstanceLevel()
    • isDataSiteLevel

      protected boolean isDataSiteLevel()
    • isDeleteDataTested

      protected boolean isDeleteDataTested()
    • isDisplayPortlet

      protected boolean isDisplayPortlet()
    • isExportImportDataTested

      protected boolean isExportImportDataTested()
    • isGetExportConfigurationPortletDataHandlerControlsTested

      protected boolean isGetExportConfigurationPortletDataHandlerControlsTested()
    • isGetExportModelCountTested

      protected boolean isGetExportModelCountTested()
    • validateDefaultData

      protected void validateDefaultData(jakarta.portlet.PortletPreferences portletPreferences)