Class BasePortletDataHandlerTestCase
java.lang.Object
com.liferay.exportimport.test.util.lar.BasePortletDataHandlerTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.xml.Element
protected com.liferay.exportimport.kernel.lar.PortletDataContext
protected com.liferay.exportimport.kernel.lar.PortletDataHandler
protected String
protected com.liferay.portal.kernel.xml.Element
protected com.liferay.portal.kernel.model.Group
protected com.liferay.portal.kernel.zip.ZipWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBooleanParameter
(Map<String, String[]> parameterMap, String namespace, String name, boolean value) protected void
addParameters
(Map<String, String[]> parameterMap) protected abstract void
protected void
checkManifestSummary
(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary) protected void
checkManifestSummaryReferrerClassNames
(com.liferay.exportimport.kernel.lar.ManifestSummary manifestSummary) protected com.liferay.exportimport.kernel.lar.DataLevel
protected String[]
protected Date
protected 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 long
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]
protected com.liferay.exportimport.kernel.lar.PortletDataHandler
getPortletDataHandler
(String portletId) protected abstract String
protected String
protected List<com.liferay.portal.kernel.model.StagedModel>
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]
protected Date
protected void
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
void
setUp()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
protected void
validateDefaultData
(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)
-