ALF-9153 Start on the discussion replies CQ

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-17 13:59:23 +00:00
parent 7aaa0bc125
commit 1c8c572a85
11 changed files with 447 additions and 23 deletions

View File

@@ -672,6 +672,24 @@ public class DiscussionServiceImplTest
}
}
/**
* Ensures that the listing / nesting of replies is correct
*/
@Test public void replyListing() throws Exception
{
// Create two sites and test
TopicInfo siteT1 = DISCUSSION_SERVICE.createTopic(DISCUSSION_SITE.getShortName(), "ST1");
TopicInfo nodeT1 = DISCUSSION_SERVICE.createTopic(FORUM_NODE, "NT1");
testNodesToTidy.add(siteT1.getNodeRef());
testNodesToTidy.add(nodeT1.getNodeRef());
for(TopicInfo topic : new TopicInfo[] {siteT1, nodeT1})
{
// Listing initially gives nothing
}
}
/**
* Ensures that when we try to write an entry to the
* container of a new site, it is correctly setup for us.