org.alfresco.repo.links
Class LinksServiceImplTest

java.lang.Object
  extended by org.alfresco.repo.links.LinksServiceImplTest

public class LinksServiceImplTest
extends java.lang.Object

Test cases for LinksServiceImpl.

Since:
4.0

Constructor Summary
LinksServiceImplTest()
           
 
Method Summary
 void createNewEntry()
           
 void createUpdateDeleteEntry()
           
static void deleteClassTestNodesAndUsers()
           
 void deleteTestNodes()
           
static void initTestsContext()
           
 void linksListing()
          Tests for listing the links of a site, possibly by user or date range
 void linksListingPermissionsChecking()
          Checks that the correct permission checking occurs on fetching links listings (which go through canned queries)
 void linksSearching()
          The lucene based searching
 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 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

LinksServiceImplTest

public LinksServiceImplTest()
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

linksListing

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

Throws:
java.lang.Exception

linksListingPermissionsChecking

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

Throws:
java.lang.Exception

linksSearching

public void linksSearching()
                    throws java.lang.Exception
The lucene based searching

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.