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

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

public class AssetTest
extends BaseWebScriptTest

Junit tests of the REST bindings for WCM Assets


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
AssetTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateAsset()
          Create Asset
 void testDeleteAsset()
           
 void testGetAndUpdateAssetContent()
          Tests updating of Content of an File Asset
 void testGetAsset()
           
 void testModifiedAssetsTest()
          test the modified assets with a webapp methods
 void testModifiedAssetsWebAppTest()
          Test the modified assets (Web App) methods
 void testMoveAsset()
          Test rename asset
 void testRenameAsset()
          Test rename asset
 void testRevertAssetsTest()
          test the revert assets methods
 void testRevertAssetsWebAppTest()
          Test the revert assets (Web App) methods
 void testSubmitAssetsTest()
          test the modified assets methods
 void testSubmitAssetsWebAppTest()
          Test the submit assets (Web App) methods
 void testUpdateAssetProperties()
          Tests updating properties of an Asset
 
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

AssetTest

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

testModifiedAssetsWebAppTest

public void testModifiedAssetsWebAppTest()
                                  throws java.lang.Exception
Test the modified assets (Web App) methods

Throws:
java.lang.Exception

testModifiedAssetsTest

public void testModifiedAssetsTest()
                            throws java.lang.Exception
test the modified assets with a webapp methods

Throws:
java.lang.Exception

testSubmitAssetsTest

public void testSubmitAssetsTest()
                          throws java.lang.Exception
test the modified assets methods

Throws:
java.lang.Exception

testSubmitAssetsWebAppTest

public void testSubmitAssetsWebAppTest()
                                throws java.lang.Exception
Test the submit assets (Web App) methods

Throws:
java.lang.Exception

testRevertAssetsTest

public void testRevertAssetsTest()
                          throws java.lang.Exception
test the revert assets methods

Throws:
java.lang.Exception

testRevertAssetsWebAppTest

public void testRevertAssetsWebAppTest()
                                throws java.lang.Exception
Test the revert assets (Web App) methods

Throws:
java.lang.Exception

testGetAsset

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

testDeleteAsset

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

testCreateAsset

public void testCreateAsset()
                     throws java.lang.Exception
Create Asset

Throws:
java.lang.Exception

testRenameAsset

public void testRenameAsset()
                     throws java.lang.Exception
Test rename asset

Throws:
java.lang.Exception

testMoveAsset

public void testMoveAsset()
                   throws java.lang.Exception
Test rename asset

Throws:
java.lang.Exception

testUpdateAssetProperties

public void testUpdateAssetProperties()
                               throws java.lang.Exception
Tests updating properties of an Asset

Throws:
java.lang.Exception

testGetAndUpdateAssetContent

public void testGetAndUpdateAssetContent()
                                  throws java.lang.Exception
Tests updating of Content of an File Asset

Throws:
java.lang.Exception


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