public class CommentsTest
extends java.lang.Object
forum model-related functionality, specifically comments.
There is no "CommentService" or "DiscussionService" and the REST API simply creates the appropriate
content structure as required by the forum model.| Constructor and Description |
|---|
CommentsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
commentOnDocsCheckingCommentCountRollup()
This test method comments on some nodes asserting that the commentCount rollup property
responds correctly to the changing number of comments.
|
void |
initIndividualTestContext()
Create some content that can be commented on.
|
static void |
initTestsContext()
Initialise various services required by the test.
|
void |
testRollupOfPreSwiftNodes()
This test method tests that commented nodes from before Swift have their comment counts correctly rolled up.
|
void |
testTriggerCommentRecount()
This test method tests that nodes whose commentCount is set to -1 have their commentCounts recalculated.
|
void |
tidyUpTestNodes()
This method deletes any nodes which were created during test execution.
|
public static void initTestsContext()
throws java.lang.Exception
java.lang.Exceptionpublic void initIndividualTestContext()
throws java.lang.Exception
java.lang.Exceptionpublic void tidyUpTestNodes()
throws java.lang.Exception
java.lang.Exceptionpublic void commentOnDocsCheckingCommentCountRollup()
throws java.lang.Exception
java.lang.Exceptionpublic void testRollupOfPreSwiftNodes()
throws java.lang.Exception
java.lang.Exceptionpublic void testTriggerCommentRecount()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.