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, updateBaseModel
protected 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 BaseSubscriptionTestCase
Exception
public void testSubscriptionLocalizedContentWhenAddingBaseModel() throws Exception
Exception
public void testSubscriptionLocalizedContentWhenUpdatingBaseModel() throws Exception
Exception
protected abstract void addSubscriptionContainerModel(long containerModelId) throws Exception
Exception
protected long getDefaultContainerModelId()
protected abstract String getPortletId()
protected String getServiceName()
protected abstract String getSubscriptionAddedBodyPreferenceName()
protected abstract String getSubscriptionUpdatedBodyPreferenceName()