Class BlogsTestUtil

java.lang.Object
com.liferay.blogs.test.util.BlogsTestUtil

public class BlogsTestUtil extends Object
  • 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

      public static String getTempBlogsEntryAttachmentFileEntryImgTag(long dataImageId, String url)
    • 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