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.Group
protected com.liferay.portal.kernel.model.Group
protected com.liferay.portal.kernel.model.Layout
protected File
protected com.liferay.portal.kernel.model.Layout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.asset.link.model.AssetLink
addAssetLink
(com.liferay.portal.kernel.model.StagedModel sourceStagedModel, com.liferay.portal.kernel.model.StagedModel targetStagedModel, int weight) protected void
protected void
protected com.liferay.portal.kernel.model.StagedModel
addStagedModel
(long groupId) protected com.liferay.portal.kernel.model.StagedModel
addStagedModel
(long groupId, Date createdDate) protected void
deleteStagedModel
(com.liferay.portal.kernel.model.StagedModel stagedModel) protected void
exportImportLayouts
(long[] layoutIds, Map<String, String[]> parameterMap) protected void
exportImportLayouts
(long[] layoutIds, Map<String, String[]> parameterMap, boolean expectError) protected void
exportLayouts
(long[] layoutIds, Map<String, String[]> parameterMap) protected void
exportLayouts
(long[] layoutIds, Map<String, String[]> parameterMap, boolean expectError) protected com.liferay.asset.kernel.model.AssetEntry
getAssetEntry
(com.liferay.portal.kernel.model.StagedModel stagedModel) protected com.liferay.portal.test.log.LogCapture
getLogCapture
(boolean expectError) protected com.liferay.portal.kernel.model.StagedModel
getStagedModel
(String uuid, long groupId) protected String
getStagedModelUuid
(com.liferay.portal.kernel.model.StagedModel stagedModel) void
importLayouts
(Map<String, String[]> parameterMap) void
importLayouts
(Map<String, String[]> parameterMap, boolean expectError) void
setUp()
void
tearDown()
protected void
validateImportedStagedModel
(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
-