|
||||||||
| 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.opencms.test.OpenCmsTestCase
org.opencms.file.TestChacc
public class TestChacc
Unit test for the "chacc" method of the CmsObject.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opencms.test.OpenCmsTestCase |
|---|
OpenCmsTestCase.ConnectionData |
| Field Summary |
|---|
| Fields inherited from class org.opencms.test.OpenCmsTestCase |
|---|
ARTICLE_TYPEID, DB_MYSQL, DB_ORACLE, m_additionalConnection, m_configuration, m_currentResourceStrorage, m_defaultConnection, m_defaultTablespace, m_indexTablespace, m_resourceStorages, m_setupConnection, m_tempTablespace |
| Constructor Summary | |
|---|---|
TestChacc(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static void |
chaccFileGroup(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsGroup group,
CmsPermissionSet permissions,
int flags)
Test the chacc method on a file and a group. |
static void |
chaccFileUser(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsUser user,
CmsPermissionSet permissions,
int flags)
Test the chacc method on a file and a user. |
static void |
chaccFolderGroup(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsGroup group,
CmsPermissionSet permissions,
int flags)
Test the chacc method on a file and a group. |
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testChaccAddRemove()
Test the creation and deletion of access control entries and checks permissions of a test user. |
void |
testChaccFileAllOthers()
Test the chacc method for the special 'all others' principal. |
void |
testChaccFileGroup()
Test the chacc method on a file and a group. |
void |
testChaccFileOverwriteAll()
Test the chacc method for the special 'overwrite all' principal. |
void |
testChaccFileUser()
Test the chacc method on a file and a user. |
void |
testChaccFolderGroup()
Test the chacc method on a folder and a group. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestChacc(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static void chaccFileGroup(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsGroup group,
CmsPermissionSet permissions,
int flags)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to change permissionsgroup - the group to change the permissions frompermissions - the new permission set for this groupflags - the flags for modifying the permission set
Throwable - if something goes wrong
public static void chaccFileUser(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsUser user,
CmsPermissionSet permissions,
int flags)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to change permissionsuser - the user to change the permissions frompermissions - the new permission set for this groupflags - the flags for modifying the permission set
Throwable - if something goes wrong
public static void chaccFolderGroup(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsGroup group,
CmsPermissionSet permissions,
int flags)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to change permissionsgroup - the group to change the permissions frompermissions - the new permission set for this groupflags - the flags for modifying the permission set
Throwable - if something goes wrongpublic static junit.framework.Test suite()
public void testChaccAddRemove()
throws Throwable
Throwable - if something goes wrong
public void testChaccFileAllOthers()
throws Throwable
Throwable - if something goes wrong
public void testChaccFileGroup()
throws Throwable
Throwable - if something goes wrong
public void testChaccFileOverwriteAll()
throws Throwable
Throwable - if something goes wrong
public void testChaccFileUser()
throws Throwable
Throwable - if something goes wrong
public void testChaccFolderGroup()
throws Throwable
Throwable - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||