mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Minor tweak to LoadTestRule javadoc.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@44226 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,9 +31,7 @@ import java.util.concurrent.CountDownLatch;
|
|||||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.junit.ClassRule;
|
|
||||||
import org.junit.rules.ErrorCollector;
|
import org.junit.rules.ErrorCollector;
|
||||||
import org.junit.rules.RuleChain;
|
|
||||||
import org.junit.runner.Description;
|
import org.junit.runner.Description;
|
||||||
import org.junit.runners.model.Statement;
|
import org.junit.runners.model.Statement;
|
||||||
|
|
||||||
@@ -68,7 +66,7 @@ import org.junit.runners.model.Statement;
|
|||||||
* @ClassRule public static RuleChain STATIC_RULE_CHAIN = RuleChain.outerRule(APP_CONTEXT_RULE)
|
* @ClassRule public static RuleChain STATIC_RULE_CHAIN = RuleChain.outerRule(APP_CONTEXT_RULE)
|
||||||
* .around(TEST_USERS);
|
* .around(TEST_USERS);
|
||||||
*
|
*
|
||||||
* @Rule LoadTestRule loadTestRule = new LoadTestRule(TEST_USERS);
|
* @Rule public LoadTestRule loadTestRule = new LoadTestRule(TEST_USERS);
|
||||||
*
|
*
|
||||||
* @Test public void aNormalTestMethod()
|
* @Test public void aNormalTestMethod()
|
||||||
* {
|
* {
|
||||||
@@ -97,6 +95,10 @@ public class LoadTestRule extends ErrorCollector
|
|||||||
this.people = people;
|
this.people = people;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the number of users/concurrent threads that this Rule has been configured to use.
|
||||||
|
* @return the number of users/threads.
|
||||||
|
*/
|
||||||
public int getCount()
|
public int getCount()
|
||||||
{
|
{
|
||||||
return this.people.getUsernames().size();
|
return this.people.getUsernames().size();
|
||||||
@@ -180,6 +182,9 @@ public class LoadTestRule extends ErrorCollector
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is a marker used to identify a JUnit @Test method as a "load test".
|
||||||
|
*/
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
|
Reference in New Issue
Block a user