Class BasePortletDataHandlerTestCase
java.lang.Object
com.liferay.exportimport.test.util.lar.BasePortletDataHandlerTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.xml.Elementprotected com.liferay.exportimport.kernel.lar.PortletDataContextprotected com.liferay.exportimport.kernel.lar.PortletDataHandlerprotected Stringprotected com.liferay.portal.kernel.xml.Elementprotected com.liferay.portal.kernel.model.Groupprotected com.liferay.portal.kernel.zip.ZipWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBooleanParameter(Map<String, String[]> parameterMap, String namespace, String name, boolean value) protected voidaddParameters(Map<String, String[]> parameterMap) protected abstract voidprotected voidcheckManifestSummary(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary) protected voidcheckManifestSummaryReferrerClassNames(com.liferay.exportimport.kernel.lar.ManifestSummary manifestSummary) protected com.liferay.exportimport.kernel.lar.DataLevelprotected String[]protected Dateprotected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]getExportConfigurationControls(long companyId, long groupId, com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] portletDataHandlerControls, long plid, boolean privateLayout) protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected longprotected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected com.liferay.exportimport.kernel.lar.PortletDataHandlergetPortletDataHandler(String portletId) protected abstract Stringprotected Stringprotected List<com.liferay.portal.kernel.model.StagedModel>protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected Dateprotected voidprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvalidateDefaultData(javax.portlet.PortletPreferences portletPreferences)
-
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
-
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
- Throws:
Exception
-
testAddDefaultData
- Throws:
Exception
-
testDataLevel
public void testDataLevel() -
testDeleteData
- Throws:
Exception
-
testExportImportData
- Throws:
Exception
-
testGetDataPortletPreferences
public void testGetDataPortletPreferences() -
testGetExportConfigurationControls
- Throws:
Exception
-
testGetExportControls
- Throws:
Exception
-
testGetExportMetadataControls
- Throws:
Exception
-
testGetExportModelCount
- Throws:
Exception
-
testGetImportConfigurationControls
public void testGetImportConfigurationControls() -
testGetImportControls
- Throws:
Exception
-
testGetImportMetadataControls
- Throws:
Exception
-
testGetStagingControls
public void testGetStagingControls() -
testIsDataPortalLevel
public void testIsDataPortalLevel() -
testIsDataPortletInstanceLevel
public void testIsDataPortletInstanceLevel() -
testIsDataSiteLevel
public void testIsDataSiteLevel() -
testIsDisplayPortlet
public void testIsDisplayPortlet() -
testPrepareManifestSummary
- Throws:
Exception
-
testValidateSchemaVersion
public void testValidateSchemaVersion() -
addBooleanParameter
-
addParameters
-
addStagedModels
- 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
-
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
-
getSchemaVersion
-
getStagedModels
-
getStagingControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getStagingControls() -
getStartDate
-
initContext
- 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)
-