org.alfresco.repo.usage
Class UserUsageTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.usage.UserUsageTest
All Implemented Interfaces:
junit.framework.Test

public class UserUsageTest
extends junit.framework.TestCase

User Usage unit test


Field Summary
protected  AuthenticationComponent authenticationComponent
           
protected  MutableAuthenticationService authenticationService
           
protected  FileFolderService fileFolderService
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  org.alfresco.service.cmr.repository.NodeRef personNodeRef
           
protected  org.alfresco.service.cmr.repository.NodeRef personNodeRef2
           
protected  org.alfresco.service.cmr.repository.NodeRef rootNodeRef
           
protected  org.alfresco.service.cmr.repository.NodeRef systemNodeRef
           
 
Constructor Summary
UserUsageTest()
           
 
Method Summary
protected  void runAs(java.lang.String userName)
           
protected  void runAsAdmin()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testCreateCopyDeleteAcrossTx()
           
 void testCreateCopyDeleteFolderWithContentAcrossTx()
           
 void testCreateCopyDeleteFolderWithContentInTx()
           
 void testCreateCopyDeleteInTx()
           
 void testCreateDeleteRestoreAcrossTx()
           
 void testCreateDeleteRestoreInTx()
           
 void testCreateDeleteRestoreTwoUsersAcrossTx()
           
 void testCreateTakeOwnershipAcrossTx()
           
 void testCreateTakeOwnershipInTx()
           
 void testCreateUpdateDeleteAcrossTx()
           
 void testCreateUpdateDeleteInTx()
           
 
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

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

fileFolderService

protected FileFolderService fileFolderService

authenticationService

protected MutableAuthenticationService authenticationService

rootNodeRef

protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef

systemNodeRef

protected org.alfresco.service.cmr.repository.NodeRef systemNodeRef

authenticationComponent

protected AuthenticationComponent authenticationComponent

personNodeRef

protected org.alfresco.service.cmr.repository.NodeRef personNodeRef

personNodeRef2

protected org.alfresco.service.cmr.repository.NodeRef personNodeRef2
Constructor Detail

UserUsageTest

public UserUsageTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

runAs

protected void runAs(java.lang.String userName)

runAsAdmin

protected void runAsAdmin()

testCreateUpdateDeleteInTx

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

testCreateUpdateDeleteAcrossTx

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

testCreateDeleteRestoreInTx

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

testCreateDeleteRestoreAcrossTx

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

testCreateCopyDeleteInTx

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

testCreateCopyDeleteAcrossTx

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

testCreateCopyDeleteFolderWithContentInTx

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

testCreateCopyDeleteFolderWithContentAcrossTx

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

testCreateTakeOwnershipInTx

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

testCreateTakeOwnershipAcrossTx

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

testCreateDeleteRestoreTwoUsersAcrossTx

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


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