|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.forum.CommentsTest
public class CommentsTest
Test class for some 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 Summary | |
---|---|
CommentsTest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentsTest()
Method Detail |
---|
public static void initTestsContext() throws java.lang.Exception
java.lang.Exception
public void initIndividualTestContext() throws java.lang.Exception
java.lang.Exception
public void tidyUpTestNodes() throws java.lang.Exception
java.lang.Exception
public void commentOnDocsCheckingCommentCountRollup() throws java.lang.Exception
java.lang.Exception
public void testRollupOfPreSwiftNodes() throws java.lang.Exception
java.lang.Exception
public void testTriggerCommentRecount() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |