public abstract class BaseUserNotificationTestCase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.model.Group |
group |
protected com.liferay.portal.kernel.model.User |
user |
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> |
userNotificationDeliveries |
| Constructor and Description |
|---|
BaseUserNotificationTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModel() |
protected void |
addContainerModel() |
protected void |
deleteUserNotificationDeliveries() |
protected void |
deleteUserNotificationEvents(long userId) |
protected abstract String |
getPortletId() |
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> |
getUserNotificationDeliveries(long userId) |
protected List<com.liferay.portal.kernel.json.JSONObject> |
getUserNotificationEventsJSONObjects(long userId,
long primaryKey) |
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) |
protected void |
updateUserNotificationDelivery(int notificationType,
int deliveryType,
boolean deliver) |
protected void |
updateUserNotificationsDelivery(boolean deliver) |
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.User user
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> userNotificationDeliveries
public void testAddUserNotificationWhenEmailNotificationsDisabled()
throws Exception
Exceptionpublic void testAddUserNotificationWhenNotificationsDisabled()
throws Exception
Exceptionpublic void testAddUserNotificationWhenWebsiteNotificationsDisabled()
throws Exception
Exceptionpublic void testUpdateUserNotification()
throws Exception
Exceptionpublic void testUpdateUserNotificationWhenEmailNotificationsDisabled()
throws Exception
Exceptionpublic void testUpdateUserNotificationWhenNotificationsDisabled()
throws Exception
Exceptionpublic void testUpdateUserNotificationWhenWebsiteNotificationsDisabled()
throws Exception
Exceptionprotected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel()
throws Exception
Exceptionprotected void deleteUserNotificationDeliveries()
throws Exception
Exceptionprotected void deleteUserNotificationEvents(long userId)
throws Exception
Exceptionprotected abstract String getPortletId()
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> getUserNotificationDeliveries(long userId) throws Exception
Exceptionprotected List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId, long primaryKey) throws Exception
Exceptionprotected boolean isValidUserNotificationEventObject(long primaryKey,
com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject)
throws Exception
Exceptionprotected abstract void subscribeToContainer()
throws Exception
Exceptionprotected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
throws Exception
Exceptionprotected void updateUserNotificationDelivery(int notificationType,
int deliveryType,
boolean deliver)
throws Exception
Exception