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 javax.jcr.Repository[] |
createRepository(RepositoryFixture fixture)
Customize the repository creation process by custom fixture handling
|
protected boolean |
isMember(org.apache.jackrabbit.api.security.user.Group g,
org.apache.jackrabbit.api.security.user.Authorizable member) |
void |
runTest() |
addBackgroundJob, afterTest, afterTest, beforeTest, beforeTest, comment, disposeThreadExecutionContext, execute, failOnRepositoryVersions, getCredentials, getRepository, getScale, issueHaltChildThreads, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginWriter, logout, prepareThreadExecutionContext, run, run, runTest, setPrintStream, setUp, statsFormats, statsNames, statsValues, tearDown
protected void beforeSuite() throws Exception
AbstractTest
beforeSuite
in class AbstractTest
Exception
- if an error occurspublic void afterSuite() throws Exception
AbstractTest
afterSuite
in class AbstractTest
Exception
- if an error occursprotected javax.jcr.Repository[] createRepository(RepositoryFixture fixture) throws Exception
AbstractTest
createRepository
in class AbstractTest
Exception
public void runTest() throws Exception
runTest
in class AbstractTest
Exception
protected boolean isMember(org.apache.jackrabbit.api.security.user.Group g, org.apache.jackrabbit.api.security.user.Authorizable member) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.