|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.security.AbstractAccessControlTest
org.apache.jackrabbit.test.api.security.AccessControlDiscoveryTest
public class AccessControlDiscoveryTest
AccessControlDiscoveryTest
...
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.test.api.security.AbstractAccessControlTest |
---|
acMgr |
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, vf, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
AccessControlDiscoveryTest()
|
Method Summary | |
---|---|
void |
testAggregregatePrivileges()
Test some simple characteristics of the known aggregate privileges (jcr:write and jcr:all). |
void |
testAllPrivilege()
Test the jcr:all privilege. |
void |
testAllPrivilegeContainsAll()
|
void |
testGetPrivileges()
|
void |
testGetPrivilegesOnNonExistingNode()
|
void |
testGetPrivilegesOnProperty()
|
void |
testGetSupportedPrivileges()
|
void |
testHasIndividualPrivileges()
|
void |
testHasPrivileges()
|
void |
testHasPrivilegesEmptyArray()
|
void |
testHasPrivilegesOnNotExistingNode()
|
void |
testHasPrivilegesOnProperty()
|
void |
testMandatoryPrivilegeFromName()
|
void |
testNotHasPrivileges()
|
void |
testPrivilegeFromName()
|
void |
testPrivilegeName()
Tests if the privilege name is treated as JCR Name and consequently reflects changes made to the namespace prefix. |
void |
testUnknownPrivilegeFromName()
|
void |
testWritePrivilege()
Test the jcr:write privilege. |
Methods inherited from class org.apache.jackrabbit.test.api.security.AbstractAccessControlTest |
---|
checkCanModifyAc, checkCanReadAc, getAccessControlManager, getPathToNonExistingNode, getPathToProperty, privilegesFromName, privilegesFromNames, setUp |
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AccessControlDiscoveryTest()
Method Detail |
---|
public void testGetSupportedPrivileges() throws RepositoryException
RepositoryException
public void testPrivilegeFromName() throws RepositoryException
RepositoryException
public void testMandatoryPrivilegeFromName() throws RepositoryException
RepositoryException
public void testUnknownPrivilegeFromName() throws RepositoryException
RepositoryException
public void testAllPrivilegeContainsAll() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
public void testAllPrivilege() throws RepositoryException, NotExecutableException
RepositoryException
NotExecutableException
public void testWritePrivilege() throws RepositoryException, NotExecutableException
RepositoryException
- If an error occurs.
NotExecutableException
- If the test cannot be executed.public void testAggregregatePrivileges() throws RepositoryException
RepositoryException
public void testPrivilegeName() throws RepositoryException
RepositoryException
- If an error occurs.public void testGetPrivileges() throws RepositoryException
RepositoryException
- If an error occurs.public void testGetPrivilegesOnNonExistingNode() throws RepositoryException
RepositoryException
- If an error occurs.public void testGetPrivilegesOnProperty() throws RepositoryException, NotExecutableException
RepositoryException
- If an error occurs.
NotExecutableException
- If the test cannot be executed.public void testHasPrivileges() throws RepositoryException
RepositoryException
- If an error occurs.public void testHasIndividualPrivileges() throws RepositoryException
RepositoryException
- If an error occurs.public void testNotHasPrivileges() throws RepositoryException, NotExecutableException
RepositoryException
- If an error occurs.
NotExecutableException
- If the test cannot be executed.public void testHasPrivilegesOnNotExistingNode() throws RepositoryException
RepositoryException
- If an error occurs.public void testHasPrivilegesOnProperty() throws RepositoryException, NotExecutableException
RepositoryException
- If an error occurs.
NotExecutableException
- If the test cannot be executed.public void testHasPrivilegesEmptyArray() throws RepositoryException, NotExecutableException
RepositoryException
- If an error occurs.
NotExecutableException
- If the test cannot be executed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |