public abstract class BaseUserNotificationTestCase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.model.Group |
group |
protected com.liferay.portal.kernel.model.User |
user |
| Constructor and Description |
|---|
BaseUserNotificationTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModel() |
protected void |
addContainerModel() |
protected abstract java.lang.String |
getPortletId() |
protected java.util.List<com.liferay.portal.kernel.json.JSONObject> |
getUserNotificationEventsJSONObjects(long userId) |
protected boolean |
isValidUserNotificationEventObject(long primaryKey,
com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject) |
void |
setUp() |
protected abstract void |
subscribeToContainer() |
void |
tearDown() |
void |
testAddUserNotification() |
void |
testAddUserNotificationWhenEmailNotificationsDisabled() |
void |
testAddUserNotificationWhenNotificationsDisabled() |
void |
testAddUserNotificationWhenWebsiteNotificationsDisabled() |
void |
testUpdateUserNotification() |
void |
testUpdateUserNotificationWhenEmailNotificationsDisabled() |
void |
testUpdateUserNotificationWhenNotificationsDisabled() |
void |
testUpdateUserNotificationWhenWebsiteNotificationsDisabled() |
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.User user
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddUserNotification()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddUserNotificationWhenEmailNotificationsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddUserNotificationWhenNotificationsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddUserNotificationWhenWebsiteNotificationsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateUserNotification()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateUserNotificationWhenEmailNotificationsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateUserNotificationWhenNotificationsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateUserNotificationWhenWebsiteNotificationsDisabled()
throws java.lang.Exception
java.lang.Exceptionprotected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel()
throws java.lang.Exception
java.lang.Exceptionprotected void addContainerModel()
throws java.lang.Exception
java.lang.Exceptionprotected abstract java.lang.String getPortletId()
protected java.util.List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId)
throws java.lang.Exception
java.lang.Exceptionprotected boolean isValidUserNotificationEventObject(long primaryKey,
com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void subscribeToContainer()
throws java.lang.Exception
java.lang.Exceptionprotected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
throws java.lang.Exception
java.lang.Exception