public abstract class BasePortletDataHandlerTestCase
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.xml.Element |
missingReferencesElement |
protected com.liferay.exportimport.kernel.lar.PortletDataContext |
portletDataContext |
protected com.liferay.exportimport.kernel.lar.PortletDataHandler |
portletDataHandler |
protected String |
portletId |
protected com.liferay.portal.kernel.xml.Element |
rootElement |
protected com.liferay.portal.kernel.model.Group |
stagingGroup |
protected com.liferay.portal.kernel.zip.ZipWriter |
zipWriter |
| Constructor and Description |
|---|
BasePortletDataHandlerTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBooleanParameter(Map<String,String[]> parameterMap,
String namespace,
String name,
boolean value) |
protected void |
addParameters(Map<String,String[]> parameterMap) |
protected abstract void |
addStagedModels() |
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 |
getDataLevel() |
protected String[] |
getDataPortletPreferences() |
protected Date |
getEndDate() |
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[] |
getExportControls() |
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] |
getExportMetadataControls() |
protected long |
getExportModelCount() |
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] |
getImportControls() |
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] |
getImportMetadataControls() |
protected com.liferay.exportimport.kernel.lar.PortletDataHandler |
getPortletDataHandler(String portletId) |
protected abstract String |
getPortletId() |
protected String |
getSchemaVersion() |
protected List<com.liferay.portal.kernel.model.StagedModel> |
getStagedModels() |
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] |
getStagingControls() |
protected Date |
getStartDate() |
protected void |
initContext() |
protected boolean |
isDataPortalLevel() |
protected boolean |
isDataPortletInstanceLevel() |
protected boolean |
isDataSiteLevel() |
protected boolean |
isDeleteDataTested() |
protected boolean |
isDisplayPortlet() |
protected boolean |
isExportImportDataTested() |
protected boolean |
isGetExportConfigurationControlsTested() |
protected boolean |
isGetExportModelCountTested() |
void |
setUp() |
void |
testAddDefaultData() |
void |
testDataLevel() |
void |
testDeleteData() |
void |
testExportImportData() |
void |
testGetDataPortletPreferences() |
void |
testGetExportConfigurationControls() |
void |
testGetExportControls() |
void |
testGetExportMetadataControls() |
void |
testGetExportModelCount() |
void |
testGetImportConfigurationControls() |
void |
testGetImportControls() |
void |
testGetImportMetadataControls() |
void |
testGetStagingControls() |
void |
testIsDataPortalLevel() |
void |
testIsDataPortletInstanceLevel() |
void |
testIsDataSiteLevel() |
void |
testIsDisplayPortlet() |
void |
testPrepareManifestSummary() |
void |
testValidateSchemaVersion() |
protected void |
validateDefaultData(javax.portlet.PortletPreferences portletPreferences) |
protected com.liferay.portal.kernel.xml.Element missingReferencesElement
protected com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext
protected com.liferay.exportimport.kernel.lar.PortletDataHandler portletDataHandler
protected String portletId
protected com.liferay.portal.kernel.xml.Element rootElement
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group stagingGroup
protected com.liferay.portal.kernel.zip.ZipWriter zipWriter
public void setUp()
throws Exception
Exceptionpublic void testAddDefaultData()
throws Exception
Exceptionpublic void testDataLevel()
throws Exception
Exceptionpublic void testDeleteData()
throws Exception
Exceptionpublic void testExportImportData()
throws Exception
Exceptionpublic void testGetDataPortletPreferences()
public void testGetExportConfigurationControls()
throws Exception
Exceptionpublic void testGetExportControls()
throws Exception
Exceptionpublic void testGetExportMetadataControls()
throws Exception
Exceptionpublic void testGetExportModelCount()
throws Exception
Exceptionpublic void testGetImportConfigurationControls()
throws Exception
Exceptionpublic void testGetImportControls()
throws Exception
Exceptionpublic void testGetImportMetadataControls()
throws Exception
Exceptionpublic void testGetStagingControls()
throws Exception
Exceptionpublic void testIsDataPortalLevel()
public void testIsDataPortletInstanceLevel()
public void testIsDataSiteLevel()
public void testIsDisplayPortlet()
throws Exception
Exceptionpublic void testPrepareManifestSummary()
throws Exception
Exceptionpublic void testValidateSchemaVersion()
throws Exception
Exceptionprotected void addBooleanParameter(Map<String,String[]> parameterMap,
String namespace,
String name,
boolean value)
protected void addParameters(Map<String,String[]> parameterMap)
protected abstract void addStagedModels()
throws Exception
Exceptionprotected 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 getDataLevel()
protected String[] getDataPortletPreferences()
protected Date getEndDate()
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[] getExportControls()
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportMetadataControls()
protected long getExportModelCount()
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportControls()
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportMetadataControls()
protected com.liferay.exportimport.kernel.lar.PortletDataHandler getPortletDataHandler(String portletId)
protected abstract String getPortletId()
protected String getSchemaVersion()
protected List<com.liferay.portal.kernel.model.StagedModel> getStagedModels()
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getStagingControls()
protected Date getStartDate()
protected void initContext()
throws Exception
Exceptionprotected boolean isDataPortalLevel()
protected boolean isDataPortletInstanceLevel()
protected boolean isDataSiteLevel()
protected boolean isDeleteDataTested()
protected boolean isDisplayPortlet()
protected boolean isExportImportDataTested()
protected boolean isGetExportConfigurationControlsTested()
protected boolean isGetExportModelCountTested()
protected void validateDefaultData(javax.portlet.PortletPreferences portletPreferences)
throws Exception
Exception