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

DBUserTestCase - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.identity
Class DBUserTestCase

java.lang.Object
  extended byjunit.framework.TestCase
      extended byorg.jboss.portal.test.identity.DBUserTestCase
All Implemented Interfaces:
UserTest.Context

public class DBUserTestCase
extends junit.framework.TestCase
implements UserTest.Context

Version:
$Revision: 5493 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private  DataSourceSupport.Config dsCfg
          .
private  HibernateSupport hibernate
          .
private  DBRoleModuleImpl roleModule
          .
private  TestRuntimeContext runtimeContext
          .
private  DBUserModuleImpl userModule
          .
private  UserTest utc
          .
 
Constructor Summary
DBUserTestCase(DataSourceSupport.Config dsCfg)
           
DBUserTestCase(java.util.Map parametrization)
           
 
Method Summary
 void begin()
           
 void commit()
           
 HibernateSupport getHibernate()
           
 java.lang.String getName()
           
 void setHibernate(HibernateSupport hibernate)
           
protected  void setUp()
           
static TestSuite suite()
           
protected  void tearDown()
           
 void testCountUser()
           
 void testCreateRole()
           
 void testCreateUser()
           
 void testDynamicProperty()
           
 void testFindRoleMembers()
           
 void testFindRoles()
           
 void testFindUser1()
           
 void testFindUser2()
           
 void testFindUsers()
           
 void testFindUsersUsingFilter()
           
 void testRemoveNonExistingRole()
           
 void testRemoveRole()
           
 void testRemoveUser()
           
 void testStaticProperty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtimeContext

private TestRuntimeContext runtimeContext
.


hibernate

private HibernateSupport hibernate
.


utc

private UserTest utc
.


userModule

private DBUserModuleImpl userModule
.


roleModule

private DBRoleModuleImpl roleModule
.


dsCfg

private DataSourceSupport.Config dsCfg
.

Constructor Detail

DBUserTestCase

public DBUserTestCase(java.util.Map parametrization)

DBUserTestCase

public DBUserTestCase(DataSourceSupport.Config dsCfg)
Method Detail

suite

public static TestSuite suite()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getHibernate

public HibernateSupport getHibernate()

setHibernate

public void setHibernate(HibernateSupport hibernate)

getName

public java.lang.String getName()

setUp

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

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

begin

public void begin()
Specified by:
begin in interface UserTest.Context

commit

public void commit()
Specified by:
commit in interface UserTest.Context

testFindUsersUsingFilter

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

testFindUser1

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

testFindUser2

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

testFindUsers

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

testCreateUser

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

testCreateRole

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

testCountUser

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

testRemoveNonExistingRole

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

testRemoveRole

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

testRemoveUser

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

testFindRoles

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

testFindRoleMembers

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

testDynamicProperty

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

testStaticProperty

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