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

LDAPTestCase - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.identity
Class LDAPTestCase

java.lang.Object
  extended byjunit.framework.TestCase
      extended byorg.jboss.portal.test.identity.LDAPTestCase
All Implemented Interfaces:
MembershipStrategyTest.Context
Direct Known Subclasses:
LDAPMembershipStrategyTestCase, LDAPSimpleRoleModuleTestCase, LDAPSimpleUserModuleTestCase

public abstract class LDAPTestCase
extends junit.framework.TestCase
implements MembershipStrategyTest.Context

Version:
$Revision: 5247 $
Author:
Julien Viet, Boleslaw Dawidowicz
See Also:
Serialized Form

Field Summary
private  DSConfig dsConfig
           
private static org.jboss.logging.Logger log
           
protected  TestRuntimeContext runtimeContext
           
 
Constructor Summary
LDAPTestCase()
           
LDAPTestCase(DSConfig dsConfig)
           
LDAPTestCase(java.util.Map parametrization)
           
 
Method Summary
 void begin()
           
protected  void cleanUp()
           
 void commit()
           
 LDAPConnectionContext createConnectionContext()
           
protected  javax.naming.directory.DirContext getDirContext()
           
 java.lang.String getName()
           
protected  void populate()
           
protected  void removeContext(javax.naming.Context mainCtx, java.lang.String name)
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.jboss.logging.Logger log

runtimeContext

protected TestRuntimeContext runtimeContext

dsConfig

private DSConfig dsConfig
Constructor Detail

LDAPTestCase

public LDAPTestCase()

LDAPTestCase

public LDAPTestCase(java.util.Map parametrization)

LDAPTestCase

public LDAPTestCase(DSConfig dsConfig)
Method Detail

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 MembershipStrategyTest.Context

commit

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

populate

protected void populate()

cleanUp

protected void cleanUp()

getDirContext

protected javax.naming.directory.DirContext getDirContext()
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

removeContext

protected void removeContext(javax.naming.Context mainCtx,
                             java.lang.String name)
                      throws java.lang.Exception
Throws:
java.lang.Exception

createConnectionContext

public LDAPConnectionContext createConnectionContext()