public abstract class BasePortletExportImportTestCase extends BaseExportImportTestCase
group, importedGroup, importedLayout, larFile, layout| Constructor and Description |
|---|
BasePortletExportImportTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameter(Map<String,String[]> parameterMap,
String name,
boolean value) |
protected com.liferay.portal.kernel.model.StagedModel |
addVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) |
protected void |
deleteFirstVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) |
protected void |
deleteLatestVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) |
protected void |
exportImportPortlet(String portletId) |
protected void |
exportImportPortlet(String portletId,
Map<String,String[]> exportParameterMap,
Map<String,String[]> importParameterMap) |
protected PortletPreferences |
getImportedPortletPreferences(Map<String,String[]> preferenceMap) |
String |
getNamespace() |
String |
getPortletId() |
protected boolean |
isVersioningEnabled() |
void |
testExportImportAssetLinks() |
protected void |
testExportImportAvailableLocales(Collection<Locale> sourceAvailableLocales,
Collection<Locale> targetAvailableLocales,
boolean expectFailure) |
void |
testExportImportDeletions() |
protected void |
testExportImportDisplayStyle(long displayStyleGroupId,
String scopeType) |
void |
testExportImportDisplayStyleFromCurrentGroup() |
void |
testExportImportDisplayStyleFromDifferentGroup() |
void |
testExportImportDisplayStyleFromGlobalScope() |
void |
testExportImportDisplayStyleFromLayoutScope() |
void |
testExportImportInvalidAvailableLocales() |
void |
testExportImportValidAvailableLocales() |
void |
testUpdateLastPublishDate() |
void |
testVersioning1() |
void |
testVersioning2() |
void |
testVersioningDeleteFirst() |
void |
testVersioningDeleteLatest() |
void |
testVersioningExportImportTwice() |
protected void |
validateImportedLinks(com.liferay.portal.kernel.model.StagedModel originalStagedModel,
com.liferay.portal.kernel.model.StagedModel importedStagedModel) |
protected void |
validateVersions() |
addAssetLink, addParameter, addParameter, addStagedModel, addStagedModel, deleteStagedModel, exportImportLayouts, exportLayouts, getAssetEntry, getExportParameterMap, getImportParameterMap, getStagedModel, getStagedModelUuid, importLayouts, setUp, tearDown, validateImportedStagedModelpublic String getNamespace()
public void testExportImportAssetLinks()
throws Exception
Exceptionpublic void testExportImportDeletions()
throws Exception
Exceptionpublic void testExportImportDisplayStyleFromCurrentGroup()
throws Exception
Exceptionpublic void testExportImportDisplayStyleFromDifferentGroup()
throws Exception
Exceptionpublic void testExportImportDisplayStyleFromGlobalScope()
throws Exception
Exceptionpublic void testExportImportDisplayStyleFromLayoutScope()
throws Exception
Exceptionpublic void testExportImportInvalidAvailableLocales()
throws Exception
Exceptionpublic void testExportImportValidAvailableLocales()
throws Exception
Exceptionpublic void testUpdateLastPublishDate()
throws Exception
Exceptionpublic void testVersioningDeleteFirst()
throws Exception
Exceptionpublic void testVersioningDeleteLatest()
throws Exception
Exceptionpublic void testVersioningExportImportTwice()
throws Exception
Exceptionprotected void addParameter(Map<String,String[]> parameterMap, String name, boolean value)
protected com.liferay.portal.kernel.model.StagedModel addVersion(com.liferay.portal.kernel.model.StagedModel stagedModel)
throws Exception
Exceptionprotected void deleteFirstVersion(com.liferay.portal.kernel.model.StagedModel stagedModel)
throws Exception
Exceptionprotected void deleteLatestVersion(com.liferay.portal.kernel.model.StagedModel stagedModel)
throws Exception
Exceptionprotected void exportImportPortlet(String portletId) throws Exception
Exceptionprotected void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap) throws Exception
Exceptionprotected PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap) throws Exception
Exceptionprotected boolean isVersioningEnabled()
protected void testExportImportAvailableLocales(Collection<Locale> sourceAvailableLocales, Collection<Locale> targetAvailableLocales, boolean expectFailure) throws Exception
Exceptionprotected void testExportImportDisplayStyle(long displayStyleGroupId,
String scopeType)
throws Exception
Exceptionprotected void validateImportedLinks(com.liferay.portal.kernel.model.StagedModel originalStagedModel,
com.liferay.portal.kernel.model.StagedModel importedStagedModel)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException