public class RoleTest extends RhnBaseTestCase
| Constructor and Description |
|---|
RoleTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAttemptChangeUserRoles()
Test to see if we can modify the collection of roles.
|
void |
testFindById()
Test the RoleFactory's testFindById() method
|
void |
testFindByLabel()
Test the RoleFactory's lookupByLabel() method
|
void |
testFindNonExistentRole()
Test to make sure RoleFactory can support looking for
roles that don't exist
|
void |
testOrgAddRole()
Test to make sure we can add Roles to Orgs
|
void |
testOrgAdminRole()
We need to make sure that the implied roles are added when a user
is an org admin.
|
void |
testUserAddRole()
Test to see if we can add a role to a user
|
void |
testUserAddRoleNotInOrg()
Test to make sure you can't add a Role to a User who's Org
doesn't have that Role.
|
void |
testUserRemoveRole()
Test to see if we can add a role to a user
|
void |
testUserWithNoRoles()
Test to make sure that we support the ability for
a user to have no roles
|
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, createDirIfNotExists, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload, setUp, tearDownassertEquals, 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, run, runBare, runTest, setName, toStringpublic void testAttemptChangeUserRoles()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testUserAddRole()
public void testUserAddRoleNotInOrg()
public void testUserRemoveRole()
public void testOrgAdminRole()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testOrgAddRole()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testUserWithNoRoles()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testFindByLabel()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testFindById()
throws java.lang.Exception
java.lang.Exception - something bad happenedpublic void testFindNonExistentRole()
throws java.lang.Exception
java.lang.Exception - something bad happened