org.alfresco.repo.web.scripts
Class ReadOnlyTransactionInGetRestApiTest

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

public class ReadOnlyTransactionInGetRestApiTest
extends BaseWebScriptTest

Set of tests that ensure GET REST APIs are run successfully in a read-only transaction (ALF-10179). Some webscripts have a side effect of creating a "container" these tests are to ensure this is handled gracefully in a way that allows the main transaction to be declared as readonly for performance reasons.

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
ReadOnlyTransactionInGetRestApiTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetDoclib2Doclist()
           
 void testGetDoclib2Node()
           
 void testGetDoclibCategoryNode()
           
 void testGetDoclibDoclist()
           
 void testGetDoclibImages()
           
 void testGetDoclibNode()
           
 void testGetDoclibNodeLocation()
           
 void testGetDoclibTreeNode()
           
 void testGetSiteBlog()
           
 void testGetSiteDataLists()
           
 void testGetSiteForumPosts()
           
 void testGetSiteLink()
           
 void testGetSiteLinks()
           
 void testGetSiteTags()
           
 void testGetSiteWiki()
           
 void testGetSiteWikiPage()
           
 void testGetSiteWikiPageVersion()
           
 
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

ReadOnlyTransactionInGetRestApiTest

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

testGetSiteBlog

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

testGetSiteForumPosts

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

testGetSiteLinks

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

testGetSiteLink

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

testGetSiteTags

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

testGetSiteDataLists

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

testGetSiteWiki

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

testGetSiteWikiPage

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

testGetSiteWikiPageVersion

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

testGetDoclibTreeNode

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

testGetDoclibDoclist

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

testGetDoclib2Doclist

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

testGetDoclibImages

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

testGetDoclibCategoryNode

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

testGetDoclibNode

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

testGetDoclib2Node

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

testGetDoclibNodeLocation

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


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