public class LoginTest extends AbstractTest
Modifier and Type | Field and Description |
---|---|
static int |
COUNT |
static int |
DEFAULT_ITERATIONS |
static long |
NO_CACHE |
static String |
USER |
Constructor and Description |
---|
LoginTest() |
LoginTest(String runAsUser,
boolean runWithToken,
int noIterations) |
Modifier and Type | Method and Description |
---|---|
void |
afterSuite()
Run after all iterations of this test have been executed.
|
void |
afterTest() |
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
|
void |
runTest() |
void |
setUp(javax.jcr.Repository repository,
javax.jcr.Credentials credentials)
Prepares this performance benchmark.
|
addBackgroundJob, afterTest, beforeTest, beforeTest, comment, disposeThreadExecutionContext, execute, failOnRepositoryVersions, getCredentials, getRepository, getScale, issueHaltChildThreads, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginWriter, logout, prepareThreadExecutionContext, run, run, runTest, setPrintStream, statsFormats, statsNames, statsValues, tearDown
public static final int COUNT
public static final String USER
public static final int DEFAULT_ITERATIONS
public static final long NO_CACHE
public LoginTest()
public LoginTest(String runAsUser, boolean runWithToken, int noIterations)
public void runTest() throws javax.jcr.RepositoryException
runTest
in class AbstractTest
javax.jcr.RepositoryException
public void afterTest() throws javax.jcr.RepositoryException
afterTest
in class AbstractTest
javax.jcr.RepositoryException
public void setUp(javax.jcr.Repository repository, javax.jcr.Credentials credentials) throws Exception
AbstractTest
setUp
in class AbstractTest
repository
- the repository to usecredentials
- credentials of a user with write accessException
- if the benchmark can not be preparedpublic 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
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.