org.alfresco.repo.discussion
Class DiscussionServiceImplTest

java.lang.Object
  extended by org.alfresco.repo.discussion.DiscussionServiceImplTest

public class DiscussionServiceImplTest
extends java.lang.Object

Test cases for DiscussionServiceImpl.

Since:
4.0

Constructor Summary
DiscussionServiceImplTest()
           
 
Method Summary
 void basicListings()
          Tests listing of topics in a site/node, and posts in a topic
 void createNewTopic()
           
 void createNewTopicAndPostAndReply()
           
 void createUpdateDeleteEntries()
           
static void deleteClassTestNodesAndUsers()
           
 void deleteTestNodes()
           
 void discussionsHotTopicsListing()
          Checks we correctly identify hot topics
 void discussionsListingPermissionsChecking()
          Checks that the correct permission checking occurs on fetching topic and post listings (which go through canned queries)
static void initTestsContext()
           
 void newContainerSetup()
          Ensures that when we try to write an entry to the container of a new site, it is correctly setup for us.
 void replyListing()
          Ensures that the listing / nesting of replies is correct
 void setAdminUser()
          By default, all tests are run as the admin user.
 void tagging()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscussionServiceImplTest

public DiscussionServiceImplTest()
Method Detail

initTestsContext

public static void initTestsContext()
                             throws java.lang.Exception
Throws:
java.lang.Exception

createNewTopic

public void createNewTopic()
                    throws java.lang.Exception
Throws:
java.lang.Exception

createNewTopicAndPostAndReply

public void createNewTopicAndPostAndReply()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createUpdateDeleteEntries

public void createUpdateDeleteEntries()
                               throws java.lang.Exception
Throws:
java.lang.Exception

basicListings

public void basicListings()
                   throws java.lang.Exception
Tests listing of topics in a site/node, and posts in a topic

Throws:
java.lang.Exception

replyListing

public void replyListing()
                  throws java.lang.Exception
Ensures that the listing / nesting of replies is correct

Throws:
java.lang.Exception

newContainerSetup

public void newContainerSetup()
                       throws java.lang.Exception
Ensures that when we try to write an entry to the container of a new site, it is correctly setup for us. This test does it's own transactions

Throws:
java.lang.Exception

tagging

public void tagging()
             throws java.lang.Exception
Throws:
java.lang.Exception

discussionsHotTopicsListing

public void discussionsHotTopicsListing()
                                 throws java.lang.Exception
Checks we correctly identify hot topics

Throws:
java.lang.Exception

discussionsListingPermissionsChecking

public void discussionsListingPermissionsChecking()
                                           throws java.lang.Exception
Checks that the correct permission checking occurs on fetching topic and post listings (which go through canned queries)

Throws:
java.lang.Exception

setAdminUser

public void setAdminUser()
By default, all tests are run as the admin user.


deleteTestNodes

public void deleteTestNodes()
                     throws java.lang.Exception
Throws:
java.lang.Exception

deleteClassTestNodesAndUsers

public static void deleteClassTestNodesAndUsers()
                                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.