public class IsMemberTest extends AbstractTest
Group.isMember(Authorizable) with the following setup:
- 10 groups
- boolean flag defining if the 10 groups will be nested or not.
- configurable number of users that will be added as members.
The test setup adds the configured number of users as members to the 10 groups,
where the target group is picked randomly. But note that each user is only
member of one single group!
The test run picks random users and tests for being member of a randomly
selected group.| Constructor and Description |
|---|
IsMemberTest(int numberOfUsers,
boolean nestedGroups) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSuite()
Run after all iterations of this test have been executed.
|
protected void |
beforeSuite()
Run before any iterations of this test get executed.
|
protected Repository[] |
createRepository(RepositoryFixture fixture)
Customize the repository creation process by custom fixture handling
|
protected boolean |
isMember(Group g,
Authorizable member) |
void |
runTest() |
addBackgroundJob, afterTest, afterTest, beforeTest, beforeTest, comment, disposeThreadExecutionContext, execute, failOnRepositoryVersions, getCredentials, getCurrentFixture, getRepository, getScale, issueHaltChildThreads, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginWriter, logout, prepareThreadExecutionContext, run, run, runTest, setPrintStream, setUp, statsFormats, statsNames, statsValues, tearDownprotected void beforeSuite()
throws Exception
AbstractTestbeforeSuite in class AbstractTestException - if an error occurspublic void afterSuite()
throws Exception
AbstractTestafterSuite in class AbstractTestException - if an error occursprotected Repository[] createRepository(RepositoryFixture fixture) throws Exception
AbstractTestcreateRepository in class AbstractTestExceptionpublic void runTest()
throws Exception
runTest in class AbstractTestExceptionprotected boolean isMember(Group g, Authorizable member) throws RepositoryException
RepositoryExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.