com.liferay.portlet.blogs.util.test
Class BlogsTestUtil
java.lang.Object
com.liferay.portlet.blogs.util.test.BlogsTestUtil
public class BlogsTestUtil
- extends Object
|
Method Summary |
static BlogsEntry |
addEntry(Group group,
boolean approved)
|
static BlogsEntry |
addEntry(long userId,
Group group,
boolean approved)
|
static BlogsEntry |
addEntry(long userId,
Group group,
boolean approved,
boolean smallImage)
|
static BlogsEntry |
addEntry(long userId,
Group group,
String title,
boolean approved)
|
static BlogsEntry |
addEntry(long userId,
Group group,
String title,
boolean approved,
boolean smallImage)
|
static BlogsEntry |
addEntry(long userId,
long groupId,
String title,
boolean approved)
|
static BlogsEntry |
addEntry(long userId,
long groupId,
String title,
boolean approved,
boolean smallImage)
|
static BlogsEntry |
addEntry(long userId,
String title,
boolean approved,
boolean smallImage,
ServiceContext serviceContext)
|
static BlogsEntry |
addEntry(long userId,
String title,
boolean approved,
ServiceContext serviceContext)
|
static void |
assertEquals(BlogsEntry expectedEntry,
BlogsEntry actualEntry)
|
static BlogsEntry |
updateEntry(BlogsEntry entry,
boolean approved)
|
static BlogsEntry |
updateEntry(BlogsEntry entry,
String title,
boolean approved)
|
static BlogsEntry |
updateEntry(BlogsEntry entry,
String title,
boolean approved,
ServiceContext serviceContext)
|
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 |
BlogsTestUtil
public BlogsTestUtil()
addEntry
public static BlogsEntry addEntry(Group group,
boolean approved)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
Group group,
boolean approved)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
Group group,
boolean approved,
boolean smallImage)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
Group group,
String title,
boolean approved)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
Group group,
String title,
boolean approved,
boolean smallImage)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
long groupId,
String title,
boolean approved)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
long groupId,
String title,
boolean approved,
boolean smallImage)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
String title,
boolean approved,
boolean smallImage,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addEntry
public static BlogsEntry addEntry(long userId,
String title,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
assertEquals
public static void assertEquals(BlogsEntry expectedEntry,
BlogsEntry actualEntry)
updateEntry
public static BlogsEntry updateEntry(BlogsEntry entry,
boolean approved)
throws Exception
- Throws:
Exception
updateEntry
public static BlogsEntry updateEntry(BlogsEntry entry,
String title,
boolean approved)
throws Exception
- Throws:
Exception
updateEntry
public static BlogsEntry updateEntry(BlogsEntry entry,
String title,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updateStatus
protected static BlogsEntry updateStatus(BlogsEntry entry,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception