C D G I L M O P R S T U W
All Classes All Packages
All Classes All Packages
All Classes All Packages
C
- cancelThreads(int) - Method in class com.clarkware.junitperf.ThreadBarrier
-
Cancels the specified number of threads.
- cleanup() - Method in class com.clarkware.junitperf.LoadTest
- com.clarkware.junitperf - package com.clarkware.junitperf
- ConstantTimer - Class in com.clarkware.junitperf
-
The
ConstantTimeris aTimerwith a constant delay. - ConstantTimer(long) - Constructor for class com.clarkware.junitperf.ConstantTimer
-
Constructs a
ConstantTimerwith the specified delay. - countTestCases() - Method in class com.clarkware.junitperf.LoadTest
-
Returns the number of tests in this load test.
- countTestCases() - Method in class com.clarkware.junitperf.TestFactory
-
Returns the number of tests in this test.
- countTestCases() - Method in class com.clarkware.junitperf.ThreadedTest
-
Returns the number of test cases in this threaded test.
- countTestCases() - Method in class com.clarkware.junitperf.TimedTest
-
Returns the number of tests in this timed test.
D
- dispatchedCount - Variable in class com.clarkware.junitperf.ThreadBarrier
G
- getDelay() - Method in class com.clarkware.junitperf.ConstantTimer
-
Returns the timer delay.
- getDelay() - Method in class com.clarkware.junitperf.LoadTest
- getDelay() - Method in class com.clarkware.junitperf.RandomTimer
-
Returns the timer delay.
- getDelay() - Method in interface com.clarkware.junitperf.Timer
-
Returns the timer delay.
- getElapsedTime(long) - Method in class com.clarkware.junitperf.TimedTest
- getTest() - Method in class com.clarkware.junitperf.TestFactory
- getTestSuite() - Method in class com.clarkware.junitperf.TestFactory
I
- isReached() - Method in class com.clarkware.junitperf.ThreadBarrier
-
Determines whether the thread barrier has been reached - when all dispatched threads have returned.
L
- LoadTest - Class in com.clarkware.junitperf
-
The
LoadTestis a test decorator that runs a test with a simulated number of concurrent users and iterations. - LoadTest(Test, int) - Constructor for class com.clarkware.junitperf.LoadTest
-
Constructs a
LoadTestto decorate the specified test using the specified number of concurrent users starting simultaneously. - LoadTest(Test, int, int) - Constructor for class com.clarkware.junitperf.LoadTest
-
Constructs a
LoadTestto decorate the specified test using the specified number of concurrent users starting simultaneously and the number of iterations per user. - LoadTest(Test, int, int, Timer) - Constructor for class com.clarkware.junitperf.LoadTest
-
Constructs a
LoadTestto decorate the specified test using the specified number of concurrent users, number of iterations per user, and delay timer. - LoadTest(Test, int, Timer) - Constructor for class com.clarkware.junitperf.LoadTest
-
Constructs a
LoadTestto decorate the specified test using the specified number of concurrent users and delay timer.
M
- makeTestSuite() - Method in class com.clarkware.junitperf.TestFactory
- makeTestSuite() - Method in class com.clarkware.junitperf.TestMethodFactory
O
- onCompletion(Thread) - Method in class com.clarkware.junitperf.ThreadBarrier
-
Called when the specified thread is complete.
- outOfTime() - Method in class com.clarkware.junitperf.TimedTest
-
Determines whether the maximum elapsed time of the test was exceeded.
P
- printElapsedTime(long) - Method in class com.clarkware.junitperf.TimedTest
R
- RandomTimer - Class in com.clarkware.junitperf
-
The
RandomTimeris aTimerwith a random delay and a uniformly distributed variation. - RandomTimer(long, double) - Constructor for class com.clarkware.junitperf.RandomTimer
-
Constructs a
RandomTimerwith the specified minimum delay and variation. - returnedCount - Variable in class com.clarkware.junitperf.ThreadBarrier
- run(TestResult) - Method in class com.clarkware.junitperf.LoadTest
-
Runs the test.
- run(TestResult) - Method in class com.clarkware.junitperf.TestFactory
-
Runs an instance of the
Testclass and collects its result in the specifiedTestResult. - run(TestResult) - Method in class com.clarkware.junitperf.ThreadedTest
-
Runs this test.
- run(TestResult) - Method in class com.clarkware.junitperf.TimedTest
-
Runs the test.
- runUntilTestCompletion(TestResult) - Method in class com.clarkware.junitperf.TimedTest
-
Runs the test until test completion and then signals a failure if the maximum elapsed time was exceeded.
- runUntilTimeExpires(TestResult) - Method in class com.clarkware.junitperf.TimedTest
-
Runs the test and immediately signals a failure when the maximum elapsed time is exceeded.
S
- setEnforceTestAtomicity(boolean) - Method in class com.clarkware.junitperf.LoadTest
-
Indicates whether test atomicity should be enforced.
- setQuiet() - Method in class com.clarkware.junitperf.TimedTest
-
Disables the output of the test's elapsed time.
- setTestResult(TestResult) - Method in class com.clarkware.junitperf.ThreadedTestGroup
-
Sets the current test result.
- sleep(long) - Method in class com.clarkware.junitperf.LoadTest
T
- testClass - Variable in class com.clarkware.junitperf.TestFactory
- TestFactory - Class in com.clarkware.junitperf
-
The
TestFactoryclass creates thread-localTestSuiteinstances. - TestFactory(Class) - Constructor for class com.clarkware.junitperf.TestFactory
-
Constructs a
TestFactoryinstance. - TestMethodFactory - Class in com.clarkware.junitperf
-
The
TestMethodFactoryclass is aTestFactorythat creates thread-localTestSuiteinstances containing a specific test method of aTestCase. - TestMethodFactory(Class, String) - Constructor for class com.clarkware.junitperf.TestMethodFactory
-
Constructs a
TestMethodFactoryinstance. - ThreadBarrier - Class in com.clarkware.junitperf
-
The
ThreadBarrierclass provides a callback method for threads to signal their completion. - ThreadBarrier(int) - Constructor for class com.clarkware.junitperf.ThreadBarrier
-
Constructs a
ThreadBarrierwith the specified number of threads to wait for. - ThreadedTest - Class in com.clarkware.junitperf
-
The
ThreadedTestis a test decorator that runs a test in a separate thread. - ThreadedTest(Test) - Constructor for class com.clarkware.junitperf.ThreadedTest
-
Constructs a
ThreadedTestto decorate the specified test using the same thread group as the current thread. - ThreadedTest(Test, ThreadGroup, ThreadBarrier) - Constructor for class com.clarkware.junitperf.ThreadedTest
-
Constructs a
ThreadedTestto decorate the specified test using the specified thread group and thread barrier. - ThreadedTestGroup - Class in com.clarkware.junitperf
-
The
ThreadedTestGroupis aThreadGroupthat catches and handles exceptions thrown by threads created and started byThreadedTestinstances. - ThreadedTestGroup(Test) - Constructor for class com.clarkware.junitperf.ThreadedTestGroup
-
Constructs a
ThreadedTestGroupfor the specified test. - TimedTest - Class in com.clarkware.junitperf
-
The
TimedTestis a test decorator that runs a test and measures the elapsed time of the test. - TimedTest(Test, long) - Constructor for class com.clarkware.junitperf.TimedTest
-
Constructs a
TimedTestto decorate the specified test with the specified maximum elapsed time. - TimedTest(Test, long, boolean) - Constructor for class com.clarkware.junitperf.TimedTest
-
Constructs a
TimedTestto decorate the specified test with the specified maximum elapsed time. - Timer - Interface in com.clarkware.junitperf
-
The
Timerinterface defines the common interface implemented by all classes whose instances serve as pluggable timers. - toString() - Method in class com.clarkware.junitperf.LoadTest
- toString() - Method in class com.clarkware.junitperf.TestFactory
-
Returns the test description.
- toString() - Method in class com.clarkware.junitperf.ThreadedTest
-
Returns the test description.
- toString() - Method in class com.clarkware.junitperf.TimedTest
-
Returns the test description.
U
- uncaughtException(Thread, Throwable) - Method in class com.clarkware.junitperf.ThreadedTestGroup
-
Called when a thread in this thread group stops because of an uncaught exception.
W
- waitForAllThreadsToComplete() - Method in class com.clarkware.junitperf.LoadTest
- waitForTestCompletion() - Method in class com.clarkware.junitperf.LoadTest
- waitForThreadedTestThreadsToComplete() - Method in class com.clarkware.junitperf.LoadTest
All Classes All Packages