org.alfresco.repo.web.scripts.calendar
Class CalendarRestApiTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.web.scripts.BaseWebScriptTest
              extended by org.alfresco.repo.web.scripts.calendar.CalendarRestApiTest
All Implemented Interfaces:
junit.framework.Test

public class CalendarRestApiTest
extends BaseWebScriptTest

Unit Test to test the Calendaring Web Script API

Since:
4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener
 
Constructor Summary
CalendarRestApiTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateEditDeleteEntry()
          Creating, editing, fetching and deleting an entry
 void testDifferentDateStyles()
          Checks that we can work with old style two part date times, ISO8601 datetimes with offsets, and ISO8601 datetimes with an explicit timezone.
 void testOverallListing()
          Listing
 void testPermissions()
          When fetching an event, we get permission details.
 void testRepeatingEventsInListings()
          Repeating events support, across both the site specific and user wide listings.
 void testUserListing()
          Listing for a user
 
Methods inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest
getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarRestApiTest

public CalendarRestApiTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseWebScriptTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testCreateEditDeleteEntry

public void testCreateEditDeleteEntry()
                               throws java.lang.Exception
Creating, editing, fetching and deleting an entry

Throws:
java.lang.Exception

testPermissions

public void testPermissions()
                     throws java.lang.Exception
When fetching an event, we get permission details. This test ensures they are correct

Throws:
java.lang.Exception

testDifferentDateStyles

public void testDifferentDateStyles()
                             throws java.lang.Exception
Checks that we can work with old style two part date times, ISO8601 datetimes with offsets, and ISO8601 datetimes with an explicit timezone.

Throws:
java.lang.Exception

testOverallListing

public void testOverallListing()
                        throws java.lang.Exception
Listing

Throws:
java.lang.Exception

testUserListing

public void testUserListing()
                     throws java.lang.Exception
Listing for a user

Throws:
java.lang.Exception

testRepeatingEventsInListings

public void testRepeatingEventsInListings()
                                   throws java.lang.Exception
Repeating events support, across both the site specific and user wide listings.

Throws:
java.lang.Exception


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