Liferay 7.0-ce-b4

com.liferay.portlet.blogs.util.test
Class BlogsTestUtil

java.lang.Object
  extended by com.liferay.portlet.blogs.util.test.BlogsTestUtil

public class BlogsTestUtil
extends Object


Constructor Summary
BlogsTestUtil()
           
 
Method Summary
static BlogsEntry addEntryWithWorkflow(long userId, String title, boolean approved, ServiceContext serviceContext)
           
static void assertEquals(BlogsEntry expectedEntry, BlogsEntry actualEntry)
           
static String getTempBlogsEntryAttachmentFileEntryImgTag(long dataImageId, String url)
           
static void populateNotificationsServiceContext(ServiceContext serviceContext, String command)
           
protected static BlogsEntry updateStatus(BlogsEntry entry, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsTestUtil

public BlogsTestUtil()
Method Detail

addEntryWithWorkflow

public static BlogsEntry addEntryWithWorkflow(long userId,
                                              String title,
                                              boolean approved,
                                              ServiceContext serviceContext)
                                       throws Exception
Throws:
Exception

assertEquals

public static void assertEquals(BlogsEntry expectedEntry,
                                BlogsEntry actualEntry)

getTempBlogsEntryAttachmentFileEntryImgTag

public static String getTempBlogsEntryAttachmentFileEntryImgTag(long dataImageId,
                                                                String url)

populateNotificationsServiceContext

public static void populateNotificationsServiceContext(ServiceContext serviceContext,
                                                       String command)
                                                throws Exception
Throws:
Exception

updateStatus

protected static BlogsEntry updateStatus(BlogsEntry entry,
                                         ServiceContext serviceContext)
                                  throws Exception
Throws:
Exception

Liferay 7.0-ce-b4