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(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
Exception
public void testAddDefaultData() throws Exception
Exception
public void testDataLevel() throws Exception
Exception
public void testDeleteData() throws Exception
Exception
public void testExportImportData() throws Exception
Exception
public void testGetDataPortletPreferences()
public void testGetExportConfigurationControls() throws Exception
Exception
public void testGetExportControls() throws Exception
Exception
public void testGetExportMetadataControls() throws Exception
Exception
public void testGetExportModelCount() throws Exception
Exception
public void testGetImportConfigurationControls() throws Exception
Exception
public void testGetImportControls() throws Exception
Exception
public void testGetImportMetadataControls() throws Exception
Exception
public void testGetStagingControls() throws Exception
Exception
public void testIsDataPortalLevel()
public void testIsDataPortletInstanceLevel()
public void testIsDataSiteLevel()
public void testIsDisplayPortlet() throws Exception
Exception
public void testPrepareManifestSummary() throws Exception
Exception
public void testValidateSchemaVersion() throws Exception
Exception
protected 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
Exception
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() throws Exception
Exception
protected 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(PortletPreferences portletPreferences) throws Exception
Exception