org.alfresco.repo.security.permissions.impl
Class AclDaoComponentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.security.permissions.impl.AclDaoComponentTest
All Implemented Interfaces:
junit.framework.Test

public class AclDaoComponentTest
extends junit.framework.TestCase


Field Summary
protected  AuthenticationComponent authenticationComponent
           
protected  MutableAuthenticationService authenticationService
           
protected  AuthorityService authorityService
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
           
protected  org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  ModelDAO permissionModelDAO
           
protected  PermissionServiceSPI permissionService
           
protected  PersonService personService
           
protected  org.alfresco.service.cmr.repository.NodeRef rootNodeRef
           
protected  ServiceRegistry serviceRegistry
           
protected  org.alfresco.service.cmr.repository.NodeRef systemNodeRef
           
 
Constructor Summary
AclDaoComponentTest()
           
 
Method Summary
protected  PermissionReference getPermission(java.lang.String permission)
           
protected  void runAs(java.lang.String userName)
           
 void setUp()
           
protected  void tearDown()
           
 void testAddSimilar()
           
 void testCreateDefault()
           
 void testCreateDefining()
           
 void testCreateOld()
           
 void testCreateShared()
           
 void testDeleteAuthority()
           
 void testFixed()
           
 void testGlobal()
           
 void testInheritanceChainDefShared()
           
 void testOldDoesNotCow()
           
 void testSimpleCow()
           
 void testSimpleCowHerd1()
           
 void testSimpleCowHerd2()
           
 void testSimpleInheritFromDefining()
           
 
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

dictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService

permissionService

protected PermissionServiceSPI permissionService

authenticationService

protected MutableAuthenticationService authenticationService

rootNodeRef

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

namespacePrefixResolver

protected org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver

serviceRegistry

protected ServiceRegistry serviceRegistry

systemNodeRef

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

authenticationComponent

protected AuthenticationComponent authenticationComponent

permissionModelDAO

protected ModelDAO permissionModelDAO

personService

protected PersonService personService

authorityService

protected AuthorityService authorityService
Constructor Detail

AclDaoComponentTest

public AclDaoComponentTest()
Method Detail

setUp

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

getPermission

protected PermissionReference getPermission(java.lang.String permission)

testCreateDefault

public void testCreateDefault()

testCreateDefining

public void testCreateDefining()

testCreateShared

public void testCreateShared()

testCreateOld

public void testCreateOld()

testFixed

public void testFixed()

testGlobal

public void testGlobal()

testSimpleInheritFromDefining

public void testSimpleInheritFromDefining()

testInheritanceChainDefShared

public void testInheritanceChainDefShared()

testDeleteAuthority

public void testDeleteAuthority()

testSimpleCow

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

testSimpleCowHerd1

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

testSimpleCowHerd2

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

testOldDoesNotCow

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

testAddSimilar

public void testAddSimilar()


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