public class BlogServiceImplTest
extends java.lang.Object
BlogServiceImpl.| Constructor and Description |
|---|
BlogServiceImplTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDraftBlogPostsAndGetPagedResults() |
void |
createTaggedDraftBlogPost() |
static void |
deleteClassTestNodesAndUsers() |
void |
deleteTestNodes() |
void |
ensureBlogPostsAreCorrectlySorted() |
void |
findBlogPostsByPublishedDate()
This test method uses the eventually consistent find*() method and so may fail if Lucene is disabled.
|
void |
getBlogPostsFilteredByDateRange() |
static void |
initTestsContext() |
void |
multipleUsersCreateDraftsAndPublishedPostsAndBrowse()
This test uses two different users to create draft and internally published blog posts.
|
void |
setAdminUser()
By default, all tests are run as the admin user.
|
public static void initTestsContext()
throws java.lang.Exception
java.lang.Exceptionpublic void setAdminUser()
public void deleteTestNodes()
throws java.lang.Exception
java.lang.Exceptionpublic static void deleteClassTestNodesAndUsers()
throws java.lang.Exception
java.lang.Exceptionpublic void createDraftBlogPostsAndGetPagedResults()
throws java.lang.Exception
java.lang.Exceptionpublic void createTaggedDraftBlogPost()
throws java.lang.Exception
java.lang.Exceptionpublic void findBlogPostsByPublishedDate()
throws java.lang.Exception
java.lang.Exceptionpublic void ensureBlogPostsAreCorrectlySorted()
throws java.lang.Exception
java.lang.Exceptionpublic void multipleUsersCreateDraftsAndPublishedPostsAndBrowse()
throws java.lang.Exception
java.lang.Exceptionpublic void getBlogPostsFilteredByDateRange()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.