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

PortalBaseTestCase - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.test.core
Class PortalBaseTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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

Field Summary
protected  DataSourceSupport.Config dsCfg
          .
protected  HibernateSupport hibernate
          .
protected  TestRuntimeContext runtimeContext
          .
 
Constructor Summary
PortalBaseTestCase()
           
 
Method Summary
protected abstract  java.lang.String getConfigLocation()
          Override to provide the location of the microcontainer xml
protected  java.util.Set getDefaultSecurityConstraints()
           
 HibernateSupport getHibernate()
           
 java.lang.String getName()
           
protected  java.util.Set getSecurityConstraints(java.lang.String perm, java.lang.String role)
           
protected  void installDefaultPolicyProvider()
           
 void setHibernate(HibernateSupport hibernate)
           
protected  void setUp()
           
protected  void setUpSubjectForRole(java.lang.String username, java.lang.String[] roleNames)
           
protected  void tearDown()
           
 
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
 

Field Detail

runtimeContext

protected TestRuntimeContext runtimeContext
.


dsCfg

protected DataSourceSupport.Config dsCfg
.


hibernate

protected HibernateSupport hibernate
.

Constructor Detail

PortalBaseTestCase

public PortalBaseTestCase()
Method Detail

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