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, validateImportedStagedModel
public String getNamespace()
public String getPortletId() throws Exception
Exception
public void testExportImportAssetLinks() throws Exception
Exception
public void testExportImportDeletions() throws Exception
Exception
public void testExportImportDisplayStyleFromCurrentGroup() throws Exception
Exception
public void testExportImportDisplayStyleFromDifferentGroup() throws Exception
Exception
public void testExportImportDisplayStyleFromGlobalScope() throws Exception
Exception
public void testExportImportDisplayStyleFromLayoutScope() throws Exception
Exception
public void testExportImportInvalidAvailableLocales() throws Exception
Exception
public void testExportImportValidAvailableLocales() throws Exception
Exception
public void testUpdateLastPublishDate() throws Exception
Exception
public void testVersioning1() throws Exception
Exception
public void testVersioning2() throws Exception
Exception
public void testVersioningDeleteFirst() throws Exception
Exception
public void testVersioningDeleteLatest() throws Exception
Exception
public void testVersioningExportImportTwice() throws Exception
Exception
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) throws Exception
Exception
protected void deleteFirstVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception
Exception
protected void deleteLatestVersion(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception
Exception
protected void exportImportPortlet(String portletId) throws Exception
Exception
protected void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap) throws Exception
Exception
protected PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap) throws Exception
Exception
protected boolean isVersioningEnabled()
protected void testExportImportAvailableLocales(Collection<Locale> sourceAvailableLocales, Collection<Locale> targetAvailableLocales, boolean expectFailure) throws Exception
Exception
protected void testExportImportDisplayStyle(long displayStyleGroupId, String scopeType) throws Exception
Exception
protected 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
protected void validateVersions() throws Exception
Exception