站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

PortalPermissionTestCase - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.test.security
Class PortalPermissionTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.portal.test.security.PortalPermissionTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
PortalObjectPermissionTestCase, SimpleTestCase

public class PortalPermissionTestCase
extends junit.framework.TestCase

A test case to extend to perform testing of portal permission subclasses.


Field Summary
protected  Server server
           
 
Constructor Summary
PortalPermissionTestCase(java.lang.String name)
           
 
Method Summary
protected  void addContainerToRole(java.lang.String roleName, PortalPermission container)
           
protected  boolean implies(PortalPermission permission, java.security.Principal[] principals)
           
 void setUp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

server

protected Server server
Constructor Detail

PortalPermissionTestCase

public PortalPermissionTestCase(java.lang.String name)
Method Detail

setUp

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

addContainerToRole

protected void addContainerToRole(java.lang.String roleName,
                                  PortalPermission container)
                           throws java.lang.Exception
Throws:
java.lang.Exception

implies

protected boolean implies(PortalPermission permission,
                          java.security.Principal[] principals)