com.redhat.rhn.common.security.acl.test
Class AclTest
java.lang.Object
TestCase
com.redhat.rhn.testing.RhnBaseTestCase
com.redhat.rhn.common.security.acl.test.AclTest
public class AclTest
- extends RhnBaseTestCase
|
Constructor Summary |
AclTest(java.lang.String name)
Constructor |
| Methods inherited from class com.redhat.rhn.testing.RhnBaseTestCase |
assertContains, assertContains, assertContains, assertNotBefore, assertNotBefore, assertNotEmpty, assertNotEmpty, assertPropertyEquals, clearSession, commitAndCloseSession, disableLocalizationServiceLogging, enableLocalizationServiceLogging, flushAndEvict, getNow, reload, reload |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AclTest
public AclTest(java.lang.String name)
- Constructor
- Parameters:
name - test name
setUp
public void setUp()
- Sets up the acl, handler, and context objects.
- Overrides:
setUp in class RhnBaseTestCase
tearDown
public void tearDown()
- Tears down the acl, handler, and context objects.
- Overrides:
tearDown in class RhnBaseTestCase
- See Also:
TestCase#tearDown(),
HibernateFactory.closeSession()
testSimpleAcl
public void testSimpleAcl()
testMultipleOrStatementsAcl
public void testMultipleOrStatementsAcl()
testMultipleAndStatementsAcl
public void testMultipleAndStatementsAcl()
testCompoundAcl
public void testCompoundAcl()
testBadHandler
public void testBadHandler()
testBadSyntax
public void testBadSyntax()
test
public void test()
testMethodNameToAclName
public void testMethodNameToAclName()
- Makes sure that method names are properly converted to acl handler
names.
Tests the following:
| method name | acl handler name |
aclTheQuickBrownFoxJumpedOverTheLazyDog |
the_quick_brown_fox_jumped_over_the_lazy_dog |
| method name | acl handler name |
aclTestXMLFile | test_xml_file |
aclTestX | test_x |
aclTestXML | test_xml |
testRegisterByClass
public void testRegisterByClass()
testBadRegisterByClass
public void testBadRegisterByClass()
testRegisterByString
public void testRegisterByString()
testBadRegisterByString
public void testBadRegisterByString()
testStringArrayConstructor
public void testStringArrayConstructor()
testGetAclHandlerNames
public void testGetAclHandlerNames()