public abstract class BaseSubscriptionLocalizedContentTestCase extends BaseSubscriptionTestCase
| Modifier and Type | Field and Description |
|---|---|
protected Locale |
defaultLocale |
protected static String |
GERMAN_BODY |
protected com.liferay.portal.kernel.model.Layout |
layout |
protected Map<Locale,String> |
localizedContents |
protected static String |
SPANISH_BODY |
creatorUser, group, PARENT_CONTAINER_MODEL_ID_DEFAULT, user| Constructor and Description |
|---|
BaseSubscriptionLocalizedContentTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addSubscriptionContainerModel(long containerModelId) |
protected long |
getDefaultContainerModelId() |
protected abstract String |
getPortletId() |
protected String |
getServiceName() |
protected abstract String |
getSubscriptionAddedBodyPreferenceName() |
protected abstract String |
getSubscriptionUpdatedBodyPreferenceName() |
protected void |
setBaseModelSubscriptionBodyPreferences(String bodyPreferenceName) |
void |
setUp() |
void |
tearDown() |
void |
testSubscriptionLocalizedContentWhenAddingBaseModel() |
void |
testSubscriptionLocalizedContentWhenUpdatingBaseModel() |
addBaseModel, addContainerModel, updateBaseModelprotected static final String GERMAN_BODY
protected static final String SPANISH_BODY
protected Locale defaultLocale
protected com.liferay.portal.kernel.model.Layout layout
public BaseSubscriptionLocalizedContentTestCase()
public void setUp()
throws Exception
setUp in class BaseSubscriptionTestCaseExceptionpublic void testSubscriptionLocalizedContentWhenAddingBaseModel()
throws Exception
Exceptionpublic void testSubscriptionLocalizedContentWhenUpdatingBaseModel()
throws Exception
Exceptionprotected abstract void addSubscriptionContainerModel(long containerModelId)
throws Exception
Exceptionprotected long getDefaultContainerModelId()
protected abstract String getPortletId()
protected String getServiceName()
protected abstract String getSubscriptionAddedBodyPreferenceName()
protected abstract String getSubscriptionUpdatedBodyPreferenceName()