Package com.liferay.blogs.test.util
Class BlogsTestUtil
java.lang.Object
com.liferay.blogs.test.util.BlogsTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.blogs.model.BlogsEntryaddEntryWithWorkflow(long userId, String title, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidassertEquals(com.liferay.blogs.model.BlogsEntry expectedEntry, com.liferay.blogs.model.BlogsEntry actualEntry) static StringgetTempBlogsEntryAttachmentFileEntryImgTag(long dataImageId, String url) static voidpopulateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) protected static com.liferay.blogs.model.BlogsEntryupdateStatus(com.liferay.blogs.model.BlogsEntry entry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
BlogsTestUtil
public BlogsTestUtil()
-
-
Method Details
-
addEntryWithWorkflow
public static com.liferay.blogs.model.BlogsEntry addEntryWithWorkflow(long userId, String title, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-
assertEquals
public static void assertEquals(com.liferay.blogs.model.BlogsEntry expectedEntry, com.liferay.blogs.model.BlogsEntry actualEntry) -
getTempBlogsEntryAttachmentFileEntryImgTag
-
populateNotificationsServiceContext
public static void populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) throws Exception - Throws:
Exception
-
updateStatus
protected static com.liferay.blogs.model.BlogsEntry updateStatus(com.liferay.blogs.model.BlogsEntry entry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception - Throws:
Exception
-