org.alfresco.wcm.asset
Class AssetServiceImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.wcm.AbstractWCMServiceImplTest
              extended by org.alfresco.wcm.asset.AssetServiceImplTest
All Implemented Interfaces:
junit.framework.Test

public class AssetServiceImplTest
extends AbstractWCMServiceImplTest

Asset Service implementation unit test


Field Summary
 
Fields inherited from class org.alfresco.wcm.AbstractWCMServiceImplTest
assetService, authenticationService, avmLockingService, CLEAN, ctx, personService, POLL_DELAY, POLL_MAX_ATTEMPTS, sbService, TEST_RUN, TEST_USER, TEST_WEBPROJ_DEFAULT_WEBAPP, TEST_WEBPROJ_DESCRIPTION, TEST_WEBPROJ_DNS, TEST_WEBPROJ_DONT_USE_AS_TEMPLATE, TEST_WEBPROJ_NAME, TEST_WEBPROJ_TITLE, TEST_WEBPROJ_USE_AS_TEMPLATE, transactionService, USER_ADMIN, USER_FOUR, USER_ONE, USER_THREE, USER_TWO, wpService
 
Constructor Summary
AssetServiceImplTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAspects()
           
 void testCopyFile()
           
 void testCopyFolder()
           
 void testCRUD()
          Test CRUD - create, retrieve (get, list), update and delete
 void testCRUDforRoles()
          Test CRUD - create, retrieve (get, list), update and delete for each role
 void testCRUDinWebApp()
          Test CRUD in a webApp - create, retrieve (get, list), update and delete
 void testDeleteFile()
           
 void testImportAndSubmit1()
           
 void testImportAndSubmit2()
           
 void testMoveFile()
           
 void testMoveFolder()
           
 void testProperties()
           
 void testRenameFile()
           
 void testRenameFolder()
           
 void testSimple()
           
 void testSimpleLockFile()
           
 void testSimpleLockFile2()
           
 
Methods inherited from class org.alfresco.wcm.AbstractWCMServiceImplTest
createUser, deleteUser, pollForSnapshotCount
 
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

AssetServiceImplTest

public AssetServiceImplTest()
Method Detail

setUp

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

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class AbstractWCMServiceImplTest
Throws:
java.lang.Exception

testSimple

public void testSimple()

testCRUD

public void testCRUD()
              throws java.io.IOException
Test CRUD - create, retrieve (get, list), update and delete

Throws:
java.io.IOException

testCRUDinWebApp

public void testCRUDinWebApp()
                      throws java.io.IOException
Test CRUD in a webApp - create, retrieve (get, list), update and delete

Throws:
java.io.IOException

testCRUDforRoles

public void testCRUDforRoles()
                      throws java.io.IOException,
                             java.lang.InterruptedException
Test CRUD - create, retrieve (get, list), update and delete for each role

Throws:
java.io.IOException
java.lang.InterruptedException

testRenameFile

public void testRenameFile()

testRenameFolder

public void testRenameFolder()

testCopyFile

public void testCopyFile()

testCopyFolder

public void testCopyFolder()

testMoveFile

public void testMoveFile()

testMoveFolder

public void testMoveFolder()

testProperties

public void testProperties()
                    throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testAspects

public void testAspects()

testSimpleLockFile

public void testSimpleLockFile()
                        throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testSimpleLockFile2

public void testSimpleLockFile2()
                         throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testImportAndSubmit1

public void testImportAndSubmit1()
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testImportAndSubmit2

public void testImportAndSubmit2()
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

testDeleteFile

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


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