com.clarkware.junitperf |
|
Java Source File Name | Type | Comment |
AllTests.java | Class | The AllTests is a TestCase
for all JUnitPerf tests. |
ConstantTimer.java | Class | The ConstantTimer is a Timer
with a constant delay. |
ExampleLoadTest.java | Class | The ExampleLoadTest demonstrates how to
decorate a Test as a LoadTest . |
ExamplePerfTestSuite.java | Class | The ExamplePerfTestSuite demonstrates how to
assemble a test suite containing performance-related tests. |
ExampleResponseTimeUnderLoadTest.java | Class | The ExampleResponseTimeUnderLoadTest demonstrates
how to decorate a TimedTest as a LoadTest
to measure response time under load. |
ExampleStatefulTestCase.java | Class | The ExampleStatefulTestCase is an example
stateful TestCase . |
ExampleTestCase.java | Class | The ExampleTestCase is an example
stateless TestCase . |
ExampleThroughputUnderLoadTest.java | Class | The ExampleThroughputUnderLoadTest demonstrates how to
decorate a LoadTest as a TimedTest
to measure throughput under load. |
ExampleTimedTest.java | Class | The ExampleTimedTest demonstrates how to
decorate a Test as a TimedTest . |
LoadTest.java | Class | The LoadTest is a test decorator that runs
a test with a simulated number of concurrent users and
iterations.
In its simplest form, a LoadTest is constructed
with a test to decorate and the number of concurrent users.
For example, to create a load test of 10 concurrent users
with each user running ExampleTest once and
all users started simultaneously, use:
Test loadTest = new LoadTest(new TestSuite(ExampleTest.class), 10);
or, to load test a single test method, use:
Test loadTest = new LoadTest(new ExampleTest("testSomething"), 10);
The load can be ramped by specifying a pluggable
Timer instance which prescribes the delay
between the addition of each concurrent user. |
LoadTestTest.java | Class | The LoadTestTest is a TestCase
for the LoadTest class. |
MockTest.java | Class | |
MockTestFactoryTest.java | Class | |
MockTestWithState.java | Class | |
RandomTimer.java | Class | The RandomTimer is a Timer
with a random delay and a uniformly distributed variation. |
TestFactory.java | Class | The TestFactory class creates thread-local
TestSuite instances.
This factory class should be used in cases when a stateful test
is intended to be decorated by a LoadTest . |
TestFactoryTest.java | Class | The TestFactoryTest is a TestCase
for the TestFactory and TestMethodFactory
classes. |
TestMethodFactory.java | Class | The TestMethodFactory class is a TestFactory
that creates thread-local TestSuite instances containing
a specific test method of a TestCase . |
ThreadBarrier.java | Class | The ThreadBarrier class provides a callback
method for threads to signal their completion. |
ThreadedTest.java | Class | The ThreadedTest is a test decorator that
runs a test in a separate thread. |
ThreadedTestGroup.java | Class | The ThreadedTestGroup is a ThreadGroup
that catches and handles exceptions thrown by threads created
and started by ThreadedTest instances. |
TimedTest.java | Class | The TimedTest is a test decorator that
runs a test and measures the elapsed time of the test.
A TimedTest is constructed with a specified
maximum elapsed time. |
TimedTestTest.java | Class | The TimedTestTest is a TestCase
for the TimedTest class. |
Timer.java | Interface | The Timer interface defines the common interface
implemented by all classes whose instances serve as pluggable timers. |