Package org.apache.qpid.junit.extensions

Basic JUnit is enahanced with test runners to run tests repeatedly, simultaneously in many threads and with increasing test sizes for asymptotic performance measurements.

See:
          Description

Interface Summary
InstrumentedTest An InstrumentedTest is one which can supply some additional instrumentation on top of the pass/fail/error behaviour of normal junit tests.
SetupTaskAware SetupTaskAware is an interface that tests that can accept injectable setup tasks may implement.
ShutdownHookable Defines an interface that classes which supply shutdown hooks implement.
TestThreadAware This interface can be implemented by tests that want to know if they are being run concurrently.
Throttle Throttle is an interface that supplies a Throttle.throttle() method, that can only be called at the rate specified in a call to the Throttle.setRate(float) method.
TimingController A TimingController is a interface that a test that is aware of the fact that it is being timed can use to manage the timer.
TimingControllerAware TimingControllerAware is an interface that tests that manipulate the timing controller should implement.
TKTestRunner.TestDecoratorFactory TestDecoratorFactory is a factory for creating test decorators from tests.
 

Class Summary
AsymptoticTestCase AsymptoticTestCase is an extension of TestCase for writing unit tests to analyze asymptotic time and space behaviour.
AsymptoticTestDecorator A Decorator that runs a test repeatedly on an increasing int parameter, or for a fixed number of repeats.
BaseThrottle Provides a base implementation of the non-waiting throttle checking method, using the system nano timer.
BatchedThrottle BatchedThrottle is a SleepThrottle that uses batching to achieve much higher throttling rates than a sleep throttle can.
DurationTestDecorator A test decorator that runs a test repeatedly until a specified length of time has passed.
NullResultPrinter A ResultPrinter that prints nothing.
ParameterVariationTestDecorator ParameterVariationTestDecorator is a test decorator that runs a test repeatedly under all permutations of its test parameters.
ScaledTestDecorator A test decorator that runs a test many times simultaneously in many threads.
SetupTaskHandler SetupTaskHandler implements a task stack.
SleepThrottle SleepThrottle is a Throttle implementation that generates short pauses using the thread sleep methods.
TestRunnerImprovedErrorHandling The TestRunner does not provide very good error handling.
TKTestResult TKTestResult extends TestResult in order to calculate test timings, to pass the variable integer parameter for parameterized test cases to those test cases and to introduce an optional delay before test starts.
TKTestRunner TKTestRunner extends TestRunner with the ability to run tests multiple times, to execute a test simultaneously using many threads, to put a delay between test runs and adds support for tests that take integer parameters that can be 'stepped' through on multiple test runs.
WrappedSuiteTestDecorator WrappedSuiteTestDecorator is a test decorator that wraps a test suite, or another wrapped suite, but provides the same functionality for the TestDecorator.countTestCases() and TestSuite.testAt(int) methods as the underlying suite.
 

Package org.apache.qpid.junit.extensions Description

Basic JUnit is enahanced with test runners to run tests repeatedly, simultaneously in many threads and with increasing test sizes for asymptotic performance measurements. There are features to measure the time and amount of memory that tests use as well as to record the asymptotic test size parameters. There are some utilities to write these test statistics to various file formats too and these can be found in the listeners package.

The main test runner class is TKTestRunner which can be called with command line parameters to specify how tests should be run.



Licensed to the Apache Software Foundation