org.alfresco.repo.web.scripts.rating
Class RatingRestApiTest

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.rating.RatingRestApiTest
All Implemented Interfaces:
junit.framework.Test

public class RatingRestApiTest
extends BaseWebScriptTest

This class tests the ReST API of the RatingService.

Since:
3.4

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
RatingRestApiTest()
           
 
Method Summary
protected  void setUp()
           
 void tearDown()
           
 void testApplyRatingsAsMultipleUsersAndRetrieve()
          This test method applies ratings from multiple users in a single rating scheme to a single test node.
 void testGetRatingSchemeDefinitions()
           
 void testGetRatingsFromUnratedNodeRef()
           
 
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

RatingRestApiTest

public RatingRestApiTest()
Method Detail

setUp

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

tearDown

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

testGetRatingSchemeDefinitions

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

testGetRatingsFromUnratedNodeRef

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

testApplyRatingsAsMultipleUsersAndRetrieve

public void testApplyRatingsAsMultipleUsersAndRetrieve()
                                                throws java.lang.Exception
This test method applies ratings from multiple users in a single rating scheme to a single test node. It then retrieves those ratings to ensure they were persisted correctly.

Throws:
java.lang.Exception


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