Class BaseUpgradePortletPreferencesTestCase
java.lang.Object
com.liferay.portlet.display.template.test.util.BaseUpgradePortletPreferencesTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.liferay.portal.kernel.test.rule.AggregateTestRule
protected com.liferay.portal.kernel.dao.orm.EntityCache
protected com.liferay.portal.kernel.model.Group
protected com.liferay.portal.kernel.service.GroupLocalService
protected com.liferay.portal.kernel.model.Layout
protected com.liferay.portal.kernel.cache.MultiVMPool
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertPortletPreferences
(Map<String, String> expectedMap) protected void
assertPortletPreferences
(Map<String, String> expectedMap, long ownerId, int ownerType, long plid) protected abstract String
protected com.liferay.portal.kernel.upgrade.UpgradeProcess
protected abstract com.liferay.portal.upgrade.registry.UpgradeStepRegistrator
protected abstract com.liferay.portal.kernel.version.Version
protected void
void
setUp()
protected void
testUpgrade
(Map<String, String> map) protected void
protected void
void
void
void
void
void
void
void
void
void
protected void
updateLayoutPortletPreference
(Map<String, String> portletPreferencesMap)
-
Field Details
-
aggregateTestRule
public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule -
entityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache -
group
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group -
groupLocalService
protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService -
layout
protected com.liferay.portal.kernel.model.Layout layout -
multiVMPool
protected com.liferay.portal.kernel.cache.MultiVMPool multiVMPool -
portletId
-
-
Constructor Details
-
BaseUpgradePortletPreferencesTestCase
public BaseUpgradePortletPreferencesTestCase()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupIdDifferentGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupIdGlobalGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupIdMissingGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupIdSameGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupKeyDifferentGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupKeyGlobalGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupKeyMissingGroup
- Throws:
Exception
-
testUpgradeWithDisplayStyleGroupKeySameGroup
- Throws:
Exception
-
testUpgradeWithNullDisplayStyleGroup
- Throws:
Exception
-
assertPortletPreferences
- Throws:
Exception
-
assertPortletPreferences
-
getPortletId
-
getUpgradeProcess
protected com.liferay.portal.kernel.upgrade.UpgradeProcess getUpgradeProcess() -
getUpgradeStepRegistrator
protected abstract com.liferay.portal.upgrade.registry.UpgradeStepRegistrator getUpgradeStepRegistrator() -
getVersion
protected abstract com.liferay.portal.kernel.version.Version getVersion() -
runUpgrade
- Throws:
Exception
-
testUpgrade
- Throws:
Exception
-
testUpgrade
- Throws:
Exception
-
testUpgrade
protected void testUpgrade(Map<String, String> expectedMap, Map<String, throws ExceptionString> map, int ownerType, long plid) - Throws:
Exception
-
updateLayoutPortletPreference
protected void updateLayoutPortletPreference(Map<String, String> portletPreferencesMap) throws Exception- Throws:
Exception
-