org.alfresco.repo.web.scripts.wcm.sandbox
Class SandboxTest

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

public class SandboxTest
extends BaseWebScriptTest

Junit tests of the REST bindings for WCM Sandbox and WCM Sandboxes


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
 
Field Summary
static java.lang.String ROLE_CONTENT_CONTRIBUTOR
           
static java.lang.String ROLE_CONTENT_MANAGER
           
static java.lang.String ROLE_CONTENT_PUBLISHER
           
static java.lang.String ROLE_CONTENT_REVIEWER
           
 
Constructor Summary
SandboxTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateSandbox()
          CRUD Sandbox Create a sandbox, get it, and delete it Is update supported? - There are no read-write attributes yet.
 void testDeleteSandbox()
          Test the delete sandbox method
 void testGetSandbox()
          Test the get sandbox method
 void testListSandbox()
          Test the list sandbox method
 
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
 

Field Detail

ROLE_CONTENT_MANAGER

public static final java.lang.String ROLE_CONTENT_MANAGER
See Also:
Constant Field Values

ROLE_CONTENT_PUBLISHER

public static final java.lang.String ROLE_CONTENT_PUBLISHER
See Also:
Constant Field Values

ROLE_CONTENT_REVIEWER

public static final java.lang.String ROLE_CONTENT_REVIEWER
See Also:
Constant Field Values

ROLE_CONTENT_CONTRIBUTOR

public static final java.lang.String ROLE_CONTENT_CONTRIBUTOR
See Also:
Constant Field Values
Constructor Detail

SandboxTest

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

testCreateSandbox

public void testCreateSandbox()
                       throws java.lang.Exception
CRUD Sandbox Create a sandbox, get it, and delete it Is update supported? - There are no read-write attributes yet.

Throws:
java.lang.Exception

testListSandbox

public void testListSandbox()
                     throws java.lang.Exception
Test the list sandbox method

Throws:
java.lang.Exception

testGetSandbox

public void testGetSandbox()
                    throws java.lang.Exception
Test the get sandbox method

Throws:
java.lang.Exception

testDeleteSandbox

public void testDeleteSandbox()
                       throws java.lang.Exception
Test the delete sandbox method

Throws:
java.lang.Exception


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