org.alfresco.repo.wiki
Class WikiServiceImplTest

java.lang.Object
  extended by org.alfresco.repo.wiki.WikiServiceImplTest

public class WikiServiceImplTest
extends java.lang.Object

Test cases for WikiServiceImpl.

Since:
4.0

Constructor Summary
WikiServiceImplTest()
           
 
Method Summary
 void createNewEntry()
           
 void createUpdateDeleteEntry()
           
static void deleteClassTestNodesAndUsers()
           
 void deleteTestNodes()
           
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 pagesListing()
          Tests for listing the wiki pages of a site, possibly by user or date range
 void pagesListingPermissionsChecking()
          Checks that the correct permission checking occurs on fetching links listings (which go through canned queries)
 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

WikiServiceImplTest

public WikiServiceImplTest()
Method Detail

initTestsContext

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

createNewEntry

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

createUpdateDeleteEntry

public void createUpdateDeleteEntry()
                             throws java.lang.Exception
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

pagesListing

public void pagesListing()
                  throws java.lang.Exception
Tests for listing the wiki pages of a site, possibly by user or date range

Throws:
java.lang.Exception

pagesListingPermissionsChecking

public void pagesListingPermissionsChecking()
                                     throws java.lang.Exception
Checks that the correct permission checking occurs on fetching links 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.