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.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
public void testAddUserNotification() throws java.lang.Exception
java.lang.Exception
public void testAddUserNotificationWhenEmailNotificationsDisabled() throws java.lang.Exception
java.lang.Exception
public void testAddUserNotificationWhenNotificationsDisabled() throws java.lang.Exception
java.lang.Exception
public void testAddUserNotificationWhenWebsiteNotificationsDisabled() throws java.lang.Exception
java.lang.Exception
public void testUpdateUserNotification() throws java.lang.Exception
java.lang.Exception
public void testUpdateUserNotificationWhenEmailNotificationsDisabled() throws java.lang.Exception
java.lang.Exception
public void testUpdateUserNotificationWhenNotificationsDisabled() throws java.lang.Exception
java.lang.Exception
public void testUpdateUserNotificationWhenWebsiteNotificationsDisabled() throws java.lang.Exception
java.lang.Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel() throws java.lang.Exception
java.lang.Exception
protected void addContainerModel() throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.String getPortletId()
protected java.util.List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId) throws java.lang.Exception
java.lang.Exception
protected boolean isValidUserNotificationEventObject(long primaryKey, com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject) throws java.lang.Exception
java.lang.Exception
protected abstract void subscribeToContainer() throws java.lang.Exception
java.lang.Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel) throws java.lang.Exception
java.lang.Exception