|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.confluence.junit3.JUnit3TimingTestCase com.atlassian.confluence.AbstractConfluenceAcceptanceTest com.atlassian.confluence.AbstractLdapAcceptanceTest
public abstract class AbstractLdapAcceptanceTest
Sets up an embedded LDAP server and associated directory in Confluence.
Field Summary | |
---|---|
protected UserDirectories.ConfigurationCallback |
configurationCallBack
|
protected UserDirectory |
internalDirectory
|
protected UserDirectory |
ldapDirectory
|
protected LdapUserManagementHelper |
ldapHelper
|
protected UserDirectories |
userDirectories
|
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
---|
DASHBOARD_RECENT_UPDATES_URL, log, logAdjuster, RANDOM, rpc, TEST_ADMIN, TEST_BLOG, TEST_COMMENT, TEST_GROUP1, TEST_GROUP2, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, testData, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, webTester, wikiMarkupRpc |
Constructor Summary | |
---|---|
AbstractLdapAcceptanceTest()
|
Method Summary | |
---|---|
protected UserDirectory |
addLdapDirectory()
|
protected void |
beforeAddLdapDirectory()
Default implementation does nothing. |
protected UserDirectory |
editLdapDirectory(LdapDirectoryPermission ldapPermission,
java.util.Map<java.lang.String,java.lang.String> ldapProperties)
|
protected LdapDirectoryPermission |
getLdapDirectoryPermission()
Override to change the permission setting for the LDAP directory. |
protected java.util.Map<java.lang.String,java.lang.String> |
getLdapProperties()
|
protected void |
initialiseLdapData(LdapService service)
Subclasses can override to install custom LDIF files, or initialise the LDAP server in other ways. |
protected void |
initLdapFromDefaultLdif(LdapService service)
|
protected abstract java.lang.String |
ldapPropertiesFile()
Overridden by subclasses to override ldap properties |
protected void |
onSetUp()
Override to execute custom set-up code. |
protected void |
onTearDown()
Override to execute custom tear-down code. |
protected void |
postProcessConfiguration()
Override to modify the LDAP configuration before it is saved. |
protected void |
setUp()
Default setUp method. |
protected void |
tearDown()
Default tearDown method. |
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase |
---|
runBare, setExceptionTransformer |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, 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 |
---|
protected UserDirectory ldapDirectory
protected UserDirectory internalDirectory
protected LdapUserManagementHelper ldapHelper
protected UserDirectories userDirectories
protected final UserDirectories.ConfigurationCallback configurationCallBack
Constructor Detail |
---|
public AbstractLdapAcceptanceTest()
Method Detail |
---|
protected final void setUp() throws java.lang.Exception
AbstractConfluenceAcceptanceTest
setUp
in class AbstractConfluenceAcceptanceTest
java.lang.Exception
- from superprotected void beforeAddLdapDirectory() throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.String ldapPropertiesFile()
protected UserDirectory addLdapDirectory()
protected UserDirectory editLdapDirectory(LdapDirectoryPermission ldapPermission, java.util.Map<java.lang.String,java.lang.String> ldapProperties)
protected java.util.Map<java.lang.String,java.lang.String> getLdapProperties()
protected LdapDirectoryPermission getLdapDirectoryPermission()
LdapDirectoryPermission.READ_WRITE
.
protected void onSetUp() throws java.lang.Exception
java.lang.Exception
protected void onTearDown() throws java.lang.Exception
java.lang.Exception
protected void postProcessConfiguration()
protected void initialiseLdapData(LdapService service) throws java.lang.Exception
service
- the LDAP service
java.lang.Exception
protected final void initLdapFromDefaultLdif(LdapService service) throws java.lang.Exception
java.lang.Exception
protected final void tearDown() throws java.lang.Exception
AbstractConfluenceAcceptanceTest
AbstractConfluenceAcceptanceTest.filesToDelete
list.
tearDown
in class AbstractConfluenceAcceptanceTest
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |