org.alfresco.repo.web.scripts.groups
Class GroupsTest

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

public class GroupsTest
extends BaseWebScriptTest

Unit test of Groups REST APIs. /api/groups /api/rootgroups


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
GroupsTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateRootGroup()
          Detailed test of create root group Detailed test of delete root group
 void testGetChildGroupsPaging()
           
 void testGetChildren()
          Detailed test of get Children
 void testGetGroup()
          Detailed test of get group
 void testGetParents()
          Detailed test of get Parents
 void testGetParentsPaging()
           
 void testGetRootGroup()
          Detailed test of get root groups
 void testGetRootGroupsPaging()
           
 void testLinkChild()
          Detailed test of link group
 void testSearchGroups()
          Detailed test of search groups if the optional includeInternal parameter is true then will include internal groups, otherwise internalGroups are not returned. If the optional shortNameFilter parameter is set then returns those root groups with a partial match on shortName.
 void testSearchGroupsPaging()
           
 void testUpdateGroup()
          Detailed test of update group
 
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

GroupsTest

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

testGetRootGroup

public void testGetRootGroup()
                      throws java.lang.Exception
Detailed test of get root groups

Throws:
java.lang.Exception

testGetGroup

public void testGetGroup()
                  throws java.lang.Exception
Detailed test of get group

Throws:
java.lang.Exception

testCreateRootGroup

public void testCreateRootGroup()
                         throws java.lang.Exception
Detailed test of create root group Detailed test of delete root group

Throws:
java.lang.Exception

testLinkChild

public void testLinkChild()
                   throws java.lang.Exception
Detailed test of link group

Throws:
java.lang.Exception

testUpdateGroup

public void testUpdateGroup()
                     throws java.lang.Exception
Detailed test of update group

Throws:
java.lang.Exception

testSearchGroups

public void testSearchGroups()
                      throws java.lang.Exception
Detailed test of search groups
  • if the optional includeInternal parameter is true then will include internal groups, otherwise internalGroups are not returned.
  • If the optional shortNameFilter parameter is set then returns those root groups with a partial match on shortName.
  • Throws:
    java.lang.Exception

    testSearchGroupsPaging

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

    testGetRootGroupsPaging

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

    testGetParentsPaging

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

    testGetChildGroupsPaging

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

    testGetParents

    public void testGetParents()
                        throws java.lang.Exception
    Detailed test of get Parents

    Throws:
    java.lang.Exception

    testGetChildren

    public void testGetChildren()
                         throws java.lang.Exception
    Detailed test of get Children

    Throws:
    java.lang.Exception


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