Class BaseExportImportTestCase
java.lang.Object
com.liferay.exportimport.test.util.lar.BaseExportImportTestCase
- Direct Known Subclasses:
BasePortletExportImportTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.model.Groupprotected com.liferay.portal.kernel.model.Groupprotected com.liferay.portal.kernel.model.Layoutprotected Fileprotected com.liferay.portal.kernel.model.Layout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.asset.link.model.AssetLinkaddAssetLink(com.liferay.portal.kernel.model.StagedModel sourceStagedModel, com.liferay.portal.kernel.model.StagedModel targetStagedModel, int weight) protected voidprotected voidprotected com.liferay.portal.kernel.model.StagedModeladdStagedModel(long groupId) protected com.liferay.portal.kernel.model.StagedModeladdStagedModel(long groupId, Date createdDate) protected voiddeleteStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel) protected voidexportImportLayouts(long[] layoutIds, Map<String, String[]> parameterMap) protected voidexportImportLayouts(long[] layoutIds, Map<String, String[]> parameterMap, boolean expectError) protected voidexportLayouts(long[] layoutIds, Map<String, String[]> parameterMap) protected voidexportLayouts(long[] layoutIds, Map<String, String[]> parameterMap, boolean expectError) protected com.liferay.asset.kernel.model.AssetEntrygetAssetEntry(com.liferay.portal.kernel.model.StagedModel stagedModel) protected com.liferay.portal.test.log.LogCapturegetLogCapture(boolean expectError) protected com.liferay.portal.kernel.model.StagedModelgetStagedModel(String uuid, long groupId) protected StringgetStagedModelUuid(com.liferay.portal.kernel.model.StagedModel stagedModel) voidimportLayouts(Map<String, String[]> parameterMap) voidimportLayouts(Map<String, String[]> parameterMap, boolean expectError) voidsetUp()voidtearDown()protected voidvalidateImportedStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel, com.liferay.portal.kernel.model.StagedModel importedStagedModel)
-
Field Details
-
group
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group -
importedGroup
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group importedGroup -
importedLayout
protected com.liferay.portal.kernel.model.Layout importedLayout -
larFile
-
layout
protected com.liferay.portal.kernel.model.Layout layout
-
-
Constructor Details
-
BaseExportImportTestCase
public BaseExportImportTestCase()
-
-
Method Details
-
importLayouts
- Throws:
Exception
-
importLayouts
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
addAssetLink
protected com.liferay.asset.link.model.AssetLink addAssetLink(com.liferay.portal.kernel.model.StagedModel sourceStagedModel, com.liferay.portal.kernel.model.StagedModel targetStagedModel, int weight) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addParameter
-
addParameter
-
addStagedModel
- Throws:
Exception
-
addStagedModel
protected com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId, Date createdDate) throws Exception - Throws:
Exception
-
deleteStagedModel
protected void deleteStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception - Throws:
Exception
-
exportImportLayouts
protected void exportImportLayouts(long[] layoutIds, Map<String, String[]> parameterMap) throws Exception- Throws:
Exception
-
exportImportLayouts
protected void exportImportLayouts(long[] layoutIds, Map<String, String[]> parameterMap, boolean expectError) throws Exception- Throws:
Exception
-
exportLayouts
- Throws:
Exception
-
exportLayouts
protected void exportLayouts(long[] layoutIds, Map<String, String[]> parameterMap, boolean expectError) throws Exception- Throws:
Exception
-
getAssetEntry
protected com.liferay.asset.kernel.model.AssetEntry getAssetEntry(com.liferay.portal.kernel.model.StagedModel stagedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportParameterMap
- Throws:
Exception
-
getImportParameterMap
- Throws:
Exception
-
getLogCapture
protected com.liferay.portal.test.log.LogCapture getLogCapture(boolean expectError) -
getStagedModel
protected com.liferay.portal.kernel.model.StagedModel getStagedModel(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getStagedModelUuid
protected String getStagedModelUuid(com.liferay.portal.kernel.model.StagedModel stagedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validateImportedStagedModel
protected void validateImportedStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel, com.liferay.portal.kernel.model.StagedModel importedStagedModel) throws Exception - Throws:
Exception
-