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()
    • testGetExportConfigurationControls

      public void testGetExportConfigurationControls() throws Exception
      Throws:
      Exception
    • testGetExportControls

      public void testGetExportControls() throws Exception
      Throws:
      Exception
    • testGetExportMetadataControls

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

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

      public void testGetImportConfigurationControls()
    • testGetImportControls

      public void testGetImportControls() throws Exception
      Throws:
      Exception
    • testGetImportMetadataControls

      public void testGetImportMetadataControls() throws Exception
      Throws:
      Exception
    • testGetStagingControls

      public void testGetStagingControls()
    • 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()
    • getExportConfigurationControls

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

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportControls()
    • getExportMetadataControls

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

      protected long getExportModelCount()
    • getImportControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportControls()
    • getImportMetadataControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportMetadataControls()
    • 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()
    • getStagingControls

      protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getStagingControls()
    • 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()
    • isGetExportConfigurationControlsTested

      protected boolean isGetExportConfigurationControlsTested()
    • isGetExportModelCountTested

      protected boolean isGetExportModelCountTested()
    • validateDefaultData

      protected void validateDefaultData(javax.portlet.PortletPreferences portletPreferences)