当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
PortalBaseTestCase - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.test.core
Class PortalBaseTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jboss.portal.test.core.PortalBaseTestCase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- PortalObjectContainerTestCase
- public abstract class PortalBaseTestCase
- extends junit.framework.TestCase
Base Test Case for Portal Core
Contains common methods used by the test framework
- Since:
- Apr 7, 2006
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, run, run, runBare, runTest, setName, 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 |
runtimeContext
protected TestRuntimeContext runtimeContext
- .
dsCfg
protected DataSourceSupport.Config dsCfg
- .
hibernate
protected HibernateSupport hibernate
- .
PortalBaseTestCase
public PortalBaseTestCase()
getHibernate
public HibernateSupport getHibernate()
setHibernate
public void setHibernate(HibernateSupport hibernate)
getName
public java.lang.String getName()
getDefaultSecurityConstraints
protected java.util.Set getDefaultSecurityConstraints()
getSecurityConstraints
protected java.util.Set getSecurityConstraints(java.lang.String perm,
java.lang.String role)
installDefaultPolicyProvider
protected void installDefaultPolicyProvider()
setUp
protected void setUp()
throws java.lang.Exception
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConfigLocation
protected abstract java.lang.String getConfigLocation()
- Override to provide the location of the microcontainer xml
setUpSubjectForRole
protected void setUpSubjectForRole(java.lang.String username,
java.lang.String[] roleNames)
throws java.lang.Exception
- Throws:
java.lang.Exception