org.alfresco.repo.calendar
Class CalendarServiceImplTest

java.lang.Object
  extended by org.alfresco.repo.calendar.CalendarServiceImplTest

public class CalendarServiceImplTest
extends java.lang.Object

Test cases for CalendarServiceImpl.

Since:
4.0

Constructor Summary
CalendarServiceImplTest()
           
 
Method Summary
 void calendarListingPermissionsChecking()
          Checks that the correct permission checking occurs on fetching calendar listings (which go through canned queries)
 void calendarMultiSiteListing()
          Test that we can retrieve (with date filtering) events from multiple sites
 void calendarSingleSiteListing()
          Simplest tests for listing on just one site, with no filtering
 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 setAdminUser()
          By default, all tests are run as the admin user.
 void tagging()
           
 void testCannedQueryEntityResults()
          Ensure that the canned query returns the right entity objects for the underlying calendar entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarServiceImplTest

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

calendarSingleSiteListing

public void calendarSingleSiteListing()
                               throws java.lang.Exception
Simplest tests for listing on just one site, with no filtering

Throws:
java.lang.Exception

calendarListingPermissionsChecking

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

Throws:
java.lang.Exception

calendarMultiSiteListing

public void calendarMultiSiteListing()
                              throws java.lang.Exception
Test that we can retrieve (with date filtering) events from multiple sites

Throws:
java.lang.Exception

testCannedQueryEntityResults

public void testCannedQueryEntityResults()
                                  throws java.lang.Exception
Ensure that the canned query returns the right entity objects for the underlying calendar entries. Checks both the low level filtering, and the DB fetching of the properties used in the filter

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.