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

RoleModelTestCase - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.test.core
Class RoleModelTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.portal.test.core.AbstractHibernateTestCase
              extended byorg.jboss.portal.test.core.ModelTestCase
                  extended byorg.jboss.portal.test.core.RoleModelTestCase
All Implemented Interfaces:
junit.framework.Test

public class RoleModelTestCase
extends ModelTestCase


Field Summary
 
Fields inherited from class org.jboss.portal.test.core.ModelTestCase
roleModule, userModule
 
Fields inherited from class org.jboss.portal.test.core.AbstractHibernateTestCase
cfg, currentSession, currentTransaction, dbName, factory, mappings
 
Constructor Summary
RoleModelTestCase(java.lang.String name)
           
 
Method Summary
protected  void populate()
           
 void testCountUser()
           
 void testCreateRole()
           
 void testCreateUser()
           
 void testFindRoleMembers()
           
 void testFindRoles()
           
 void testFindUser1()
           
 void testFindUser2()
           
 void testFindUsers()
           
 void testRemoveNonExistingRole()
           
 void testRemoveRole()
           
 void testRemoveUser()
           
 
Methods inherited from class org.jboss.portal.test.core.ModelTestCase
setUp
 
Methods inherited from class org.jboss.portal.test.core.AbstractHibernateTestCase
beginTransaction, closeSession, commitTransaction, createConfiguration, createSchema, createSessionFactory, destroyConfiguration, destroySchema, destroySessionFactory, getCurrentSession, openSession, rollbackTransaction, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, 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
 

Constructor Detail

RoleModelTestCase

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

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

populate

protected void populate()
                 throws java.lang.Exception
Overrides:
populate in class ModelTestCase
Throws:
java.lang.Exception