A B C D E F G I J L M N O P R S T U W X

A

addError(Test, Throwable) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
An error occurred.
addError(Test, Throwable) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Called when a test results in an error.
addError(Test, Throwable) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
An error occurred.
addError(Test, Throwable) - Method in class org.apache.qpid.junit.extensions.NullResultPrinter
Does nothing.
addErrorMessage(String) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Keeps the error message for later reporting by the coordinator.
addFailure(Test, AssertionFailedError) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
A failure occurred.
addFailure(Test, AssertionFailedError, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Called when a test completes to mark it as a test fail.
addFailure(Test, AssertionFailedError) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Called when a test results in a failure.
addFailure(Test, AssertionFailedError, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Called when a test completes to mark it as a test fail.
addFailure(Test, AssertionFailedError, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Called when a test completes to mark it as a test fail.
addFailure(Test, AssertionFailedError) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
A failure occurred.
addFailure(Test, AssertionFailedError, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Called when a test completes to mark it as a test fail.
addFailure(Test, AssertionFailedError) - Method in class org.apache.qpid.junit.extensions.NullResultPrinter
Does nothing.
addOption(String, String, String, boolean, String) - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Adds the option to list of available command line options.
addOptionsToProperties(Properties) - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
If a command line has been parsed, calling this method sets all of its options that were set to the specified properties.
addTestThread(TestRunnable, int) - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Adds a thread to this coordinator and assigns an id to it.
addTKTestListener(TKTestListener) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Adds a timing listener to pass all timing events to.
addTrailingPairsToProperties(Properties) - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
If a command line has been parsed, calling this method sets all of its free arguments that were name=value pairs on the specified properties.
allow(int[]) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Produces allow events on each of the specified threads.
applyOptionalUserDecorators(WrappedSuiteTestDecorator) - Method in class org.apache.qpid.junit.extensions.TKTestRunner
If there were any user specified test decorators on the command line, this method instantiates them and wraps the test in them, from inner-most to outer-most in the order in which the decorators were supplied on the command line.
argument - Variable in class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
Holds a string describing how to use this command line argument.
argumentFormatRegexp - Variable in class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
A regular head describing what format the argument to this option muist have.
arrayProperties - Variable in class org.apache.qpid.junit.extensions.util.ContextualProperties
Used to hold all the array properties.
AsymptoticTestCase - Class in org.apache.qpid.junit.extensions
AsymptoticTestCase is an extension of TestCase for writing unit tests to analyze asymptotic time and space behaviour.
AsymptoticTestCase(String) - Constructor for class org.apache.qpid.junit.extensions.AsymptoticTestCase
Constructs a test case with the given name.
AsymptoticTestDecorator - Class in org.apache.qpid.junit.extensions
A Decorator that runs a test repeatedly on an increasing int parameter, or for a fixed number of repeats.
AsymptoticTestDecorator(WrappedSuiteTestDecorator, int[], int) - Constructor for class org.apache.qpid.junit.extensions.AsymptoticTestDecorator
Creates an asymptotic test decorator that wraps a test with repeats and a set of integer 'size' paramters to call the test with.
AsymptoticTestDecorator(WrappedSuiteTestDecorator, int, int, int, int) - Constructor for class org.apache.qpid.junit.extensions.AsymptoticTestDecorator
Creates a new AsymptoticTestDecorator object.

B

BaseThrottle - Class in org.apache.qpid.junit.extensions
Provides a base implementation of the non-waiting throttle checking method, using the system nano timer.
BaseThrottle() - Constructor for class org.apache.qpid.junit.extensions.BaseThrottle
 
BatchedThrottle - Class in org.apache.qpid.junit.extensions
BatchedThrottle is a SleepThrottle that uses batching to achieve much higher throttling rates than a sleep throttle can.
BatchedThrottle() - Constructor for class org.apache.qpid.junit.extensions.BatchedThrottle
 
batchSize - Variable in class org.apache.qpid.junit.extensions.BatchedThrottle
Holds the batch size.

C

callCount - Variable in class org.apache.qpid.junit.extensions.BatchedThrottle
The call count within the current batch.
chainSetupTask(Runnable) - Method in interface org.apache.qpid.junit.extensions.SetupTaskAware
Adds the specified task to the tests setup.
chainSetupTask(Runnable) - Method in class org.apache.qpid.junit.extensions.SetupTaskHandler
Adds the specified task to the tests setup.
chainTearDownTask(Runnable) - Method in interface org.apache.qpid.junit.extensions.SetupTaskAware
Adds the specified task to the tests tear down.
chainTearDownTask(Runnable) - Method in class org.apache.qpid.junit.extensions.SetupTaskHandler
Adds the specified task to the tests tear down.
checkThrottle() - Method in class org.apache.qpid.junit.extensions.BaseThrottle
Checks but does not enforce the throttle rate.
checkThrottle() - Method in interface org.apache.qpid.junit.extensions.Throttle
Checks but does not enforce the throttle rate.
CommandLineParser - Class in org.apache.qpid.junit.extensions.util
CommandLineParser provides a utility for specifying the format of a command line and parsing command lines to ensure that they fit their specified format.
CommandLineParser(String[][]) - Constructor for class org.apache.qpid.junit.extensions.util.CommandLineParser
Creates a command line options parser from a command line specification.
CommandLineParser.CommandLineOption - Class in org.apache.qpid.junit.extensions.util
Holds information about a command line options.
CommandLineParser.CommandLineOption(String, boolean, String, String, boolean, String) - Constructor for class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
Create a command line option object that holds specific information about a command line option.
comment - Variable in class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
Holds a short comment describing what this command line argument is for.
completeTest(boolean) - Method in interface org.apache.qpid.junit.extensions.TimingController
Register an additional pass/fail for the current test.
completeTest(boolean, int) - Method in interface org.apache.qpid.junit.extensions.TimingController
Register an additional pass/fail for the current test.
completeTest(boolean, int, Long) - Method in interface org.apache.qpid.junit.extensions.TimingController
Register an additional pass/fail for the current test.
completeTest(boolean, int, Long, Long) - Method in interface org.apache.qpid.junit.extensions.TimingController
Register an additional pass/fail for the current test.
concurrencyLevel(Test, int, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Should be called every time a test completes with the current number of test threads running.
concurrencyLevel(Test, int, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Should be called every time a test completes with the current number of test threads running.
concurrencyLevel(Test, int, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Should be called every time a test completes with the current number of test threads running.
concurrencyLevel(Test, int, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Should be called every time a test completes with the current number of test threads running.
ConsoleTestListener - Class in org.apache.qpid.junit.extensions.listeners
ConsoleTestListener provides feedback to the console, as test timings are taken, by drawing a '.', or an 'E', or an 'F', for each test that passes, is in error or fails.
ConsoleTestListener() - Constructor for class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Creates a dot drawing feedback test listener, set by default to 80 columns at 80 dots per second capped rate.
consumeAllowEvent(int[], boolean, int, TestRunnable) - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Consumes an 'allow to continue' from one of the specified threads or waits until one is available or in some cases if one of the specified threads is blocked elsewhere to accept that as an 'allow to continue' event.
ContextualProperties - Class in org.apache.qpid.junit.extensions.util
ContextualProperties is an extension of Properties that automatically selects properties based on an environment parameter (defined by the system property ENV_SYS_PROPERTY), the name of a class, plus a modifier (which can be used to name a method of a class) and a property key.
ContextualProperties() - Constructor for class org.apache.qpid.junit.extensions.util.ContextualProperties
Default constructor that builds a ContextualProperties that uses environment defaults.
ContextualProperties(Properties) - Constructor for class org.apache.qpid.junit.extensions.util.ContextualProperties
Creates a ContextualProperties that uses environment defaults and is initialized with the specified properties.
countTestCases() - Method in class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
Returns the test count of the wrapped suite.
createArrayProperties() - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Scans all the properties in the parent Properties object and creates arrays for any array property definitions.
createTestResult() - Method in class org.apache.qpid.junit.extensions.TKTestRunner
Creates the TestResult object to be used for test runs.
csvResults - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Flag that indicates the CSV results listener should be used to output results.
CSVTestListener - Class in org.apache.qpid.junit.extensions.listeners
CSVTestListener is both a test listener, a timings listener, a memory listener and a parameter listener.
CSVTestListener(Writer) - Constructor for class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Creates a new CSVTestListener object.
currentTestClassName - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Holds the name of the class of the test currently being run.
cycleTimeNanos - Variable in class org.apache.qpid.junit.extensions.BaseThrottle
Holds the length of a single cycle in nano seconds.

D

decorateTest(Test) - Method in interface org.apache.qpid.junit.extensions.TKTestRunner.TestDecoratorFactory
Decorates the specified test with a new decorator.
decorateTests(Test) - Method in class org.apache.qpid.junit.extensions.TKTestRunner
Applies test decorators to the tests for parameterization, duration, scaling and repetition.
decoratorFactories - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Holds a list of factories for instantiating optional user specified test decorators.
DefaultThreadFactory - Class in org.apache.qpid.junit.concurrency
Implements a default thread factory.
DefaultThreadFactory() - Constructor for class org.apache.qpid.junit.concurrency.DefaultThreadFactory
 
delay - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Delay in ms to wait between two test cases.
doRun(Test, boolean) - Method in class org.apache.qpid.junit.extensions.TKTestRunner
Runs a test or suite of tests, using the super class implemenation.
duration - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
The length of time to run the tests for.
DURATION_PATTERN - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
The regular expression that matches the duration expression.
DURATION_REGEXP - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
The duration definition matching regular expression.
DurationTestDecorator - Class in org.apache.qpid.junit.extensions
A test decorator that runs a test repeatedly until a specified length of time has passed.
DurationTestDecorator(WrappedSuiteTestDecorator) - Constructor for class org.apache.qpid.junit.extensions.DurationTestDecorator
Creates an active test with default multiplier (1).
DurationTestDecorator(WrappedSuiteTestDecorator, long) - Constructor for class org.apache.qpid.junit.extensions.DurationTestDecorator
Creates active test with default multiplier (1).

E

element() - Method in class org.apache.qpid.junit.extensions.util.StackQueue
Retrieves, but does not remove, the head of this queue.
endBatch(Properties) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Notifies listeners of the end of a complete run of tests.
endBatch(Properties) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Takes a time stamp for the end of the batch to calculate the total run time.
endBatch(Properties) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Notifies listeners of the end of a complete run of tests.
endBatch(Properties) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Notifies listeners of the end of a complete run of tests.
endTest(Test) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
A test ended.
endTest(Test, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Called when a test completes.
endTest(Test) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Called when a test completes.
endTest(Test, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Called when a test completes.
endTest(Test, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Called when a test completes.
endTest(Test) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Notification that a test ended.
endTest(Test, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Called when a test completes.
endTest(Test) - Method in class org.apache.qpid.junit.extensions.NullResultPrinter
Does nothing.
endTest(Test) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Callback method use to inform this result that a test was completed.
ENV_SYS_PROPERTY - Static variable in class org.apache.qpid.junit.extensions.util.ContextualProperties
The name of the system property that is used to define the environment.
error - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener.Result
Holds the exception that caused error in this test.
errors - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Holds the overall error count.
expectsArgs - Variable in class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
Flag that determines whether or not this command line argument can take arguments.

F

failure - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener.Result
Holds the assertion exception that caused failure in this test.
failures - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Holds the overall failure count.
firstCall - Variable in class org.apache.qpid.junit.extensions.BaseThrottle
Flag used to detect the first call to the Throttle.throttle() method.
firstCheckCall - Variable in class org.apache.qpid.junit.extensions.BaseThrottle
Flag used to detect the first call to the BaseThrottle.checkThrottle() method.

G

generateExpSequence(int, int, int) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Given a start and end and a number of steps this method generates a sequence of expontentially spaced integer values, starting at the start (inclusive) and finishing at the end (inclusive) with the specified number of values in the sequence.
generateSequence(int, int, int) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Given a start and end and a number of steps this method generates a sequence of evenly spaced integer values, starting at the start (inclusive) and finishing at the end (inclusive) with the specified number of values in the sequence.
getAccessedProps() - Static method in class org.apache.qpid.junit.extensions.util.TestContextProperties
Gets all of the properties (with their most recent values) that have been set or read through this class.
getAllUnderlyingTests() - Method in class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
Gets all the tests from the underlying test suite.
getConcurrencyLevel() - Method in class org.apache.qpid.junit.extensions.ScaledTestDecorator
Reports the number of tests that the scaled decorator is currently running concurrently.
getControllerForCurrentThread() - Method in interface org.apache.qpid.junit.extensions.TimingController
Gets the timing controller associated with the current test thread.
getErrorMessage() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Reports any accumulated error messages.
getErrors() - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Lists all the parsing errors from the most recent parsing in a string.
getException() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Reports any exception thrown by the TestRunnable.runWithExceptions() method.
getExceptions() - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Reports any accumulated exceptions from the test threads run methods.
getInstance() - Static method in class org.apache.qpid.junit.extensions.util.TestContextProperties
Gets the singleton instance of the test context properties.
getInstance(Properties) - Static method in class org.apache.qpid.junit.extensions.util.TestContextProperties
Gets the singleton instance of the test context properties, applying a specified set of default properties to it, if they are not already set.
getKeyIterator(String, String, String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
For a given environment, base, modifier and key and setting of the use of default environments feature this generates an iterator that walks over the order in which to try and access properties.
getN() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Gets the current value of the integer parameter to be passed to the parameterized test.
getN() - Method in class org.apache.qpid.junit.extensions.TKTestResult
Gets the integer parameter to pass to parameterized test cases.
getOptionsInForce() - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Lists the properties set from the most recent parsing or an empty string if no parsing has been done yet.
getProperties(String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Looks up an array property value relative to the environment, callers class and method.
getProperties(Object, String, String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Looks up an array property value relative to the environment, base class and modifier.
getProperties(String, String, String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Looks up an array property value relative to the environment, base class and modifier.
getProperty(String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Looks up a property value relative to the environment, callers class and method.
getProperty(Object, String, String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Looks up a property value relative to the environment, base class and modifier.
getProperty(String, String, String) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Looks up a property value relative to the environment, base class and modifier.
getProperty(String) - Method in class org.apache.qpid.junit.extensions.util.TestContextProperties
Looks up a property value relative to the environment, callers class and method.
getPropertyAsBoolean(String) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Parses a property as a boolean.
getPropertyAsInteger(String) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Parses a property as an integer.
getPropertyAsLong(String) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Parses a property as a long.
getShutdownHook() - Method in class org.apache.qpid.junit.extensions.DurationTestDecorator
Supplies the shutdown hook.
getShutdownHook() - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Supplies the shutdown hook.
getShutdownHook() - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Supplies the shutdown hook.
getShutdownHook() - Method in class org.apache.qpid.junit.extensions.ScaledTestDecorator
Supplies the shut-down hook.
getShutdownHook() - Method in interface org.apache.qpid.junit.extensions.ShutdownHookable
Supplies the shutdown hook.
getTestEndMemory() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Reports the memory usage at the end of the test.
getTestEndMemory() - Method in interface org.apache.qpid.junit.extensions.InstrumentedTest
Reports the memory usage at the end of the test.
getTestInfo(Test) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Helper method that generats a String of verbose information about a test.
getTestStartMemory() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Reports the memory usage at the start of the test.
getTestStartMemory() - Method in interface org.apache.qpid.junit.extensions.InstrumentedTest
Reports the memory usage at the start of the test.
getTestTime() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Reports how long the test took to run.
getTestTime() - Method in interface org.apache.qpid.junit.extensions.InstrumentedTest
Reports how long the test took to run.
getThread() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Gets the Java thread under which this runs.
getUsage() - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Generates a usage string consisting of the name of each option and each options argument description and comment.
getUsedMemory() - Static method in class org.apache.qpid.junit.extensions.util.SizeOf
Runs the garbage collector until the used memory stabilizes and then measures it.

I

InstrumentedTest - Interface in org.apache.qpid.junit.extensions
An InstrumentedTest is one which can supply some additional instrumentation on top of the pass/fail/error behaviour of normal junit tests.
isWaitingOnCoordinator() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Reports whether or not this thread is waiting on the coordinator.

J

joinAndRetrieveMessages() - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Waits until all the test threads have completed and returns any accumulated error messages from them.

L

load(InputStream) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Parses an input stream as properties.
log - Variable in class org.apache.qpid.junit.extensions.TestRunnerImprovedErrorHandling
Used for logging.

M

main(String[]) - Method in class org.apache.qpid.junit.concurrency.ThreadTestExample
Executes the test threads with coordination.
main(String[]) - Static method in class org.apache.qpid.junit.extensions.TKTestRunner
The entry point for the toolkit test runner.
main(String[]) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Runs a quick test of the sequence generation methods to confirm that they work as expected.
mandatory - Variable in class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
Flag that determines whether or not this is an mandatory command line argument.
MathUtils - Class in org.apache.qpid.junit.extensions.util
Mathematical support methods for the toolkit.
MathUtils() - Constructor for class org.apache.qpid.junit.extensions.util.MathUtils
 
maxInArray(int[]) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Returns the maximum value in an array of integers.
memoryUsed(Test, long, long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Should be called every time a test completed with the amount of memory used before and after the test was run.
memoryUsed(Test, long, long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Should be called every time a test completed with the amount of memory used before and after the test was run.
memoryUsed(Test, long, long, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Should be called every time a test completed with the amount of memory used before and after the test was run.
memoryUsed(Test, long, long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Should be called every time a test completed with the amount of memory used before and after the test was run.

N

NAME_VALUE_PATTERN - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
The regular expression that matches name=value pairs and variations.
NAME_VALUE_REGEXP - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
For matching name=value pairs.
NAME_VALUE_SEQUENCE_REGEXP - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
For matching name=[n: ...
NAME_VALUE_VARIATION_REGEXP - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
For matching name=[value1: value2: ...] variations.
newThread(Runnable) - Method in class org.apache.qpid.junit.concurrency.DefaultThreadFactory
Constructs a new Thread.
notifyEndBatch() - Method in class org.apache.qpid.junit.extensions.TKTestResult
Called by the test runner to notify this that the current test batch has been ended.
notifyStartBatch() - Method in class org.apache.qpid.junit.extensions.TKTestResult
Called by the test runner to notify this that a new test batch is being begun.
notifyTestProperties(Properties) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Called by the test runner to notify this of the properties that the test is using.
NullResultPrinter - Class in org.apache.qpid.junit.extensions
A ResultPrinter that prints nothing.
NullResultPrinter(PrintStream) - Constructor for class org.apache.qpid.junit.extensions.NullResultPrinter
Builds a fake ResultPrinter that prints nothing.

O

offer(E) - Method in class org.apache.qpid.junit.extensions.util.StackQueue
Inserts the specified element into this queue, if possible.
option - Variable in class org.apache.qpid.junit.extensions.util.CommandLineParser.CommandLineOption
Holds the text for the flag to match this argument with.
org.apache.qpid.junit.concurrency - package org.apache.qpid.junit.concurrency
Contains code to assist in testing concurrency issues using coordinated threads to present code under test with oportunities to expose concurrency bugs.
org.apache.qpid.junit.extensions - 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.
org.apache.qpid.junit.extensions.listeners - package org.apache.qpid.junit.extensions.listeners
Listners for test statistics are defined in this package.
org.apache.qpid.junit.extensions.util - package org.apache.qpid.junit.extensions.util
Provides some helper classes.

P

parameterValue(Test, int, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Should be called every time a parameterized test completed with the int value of its test parameter.
parameterValue(Test, int, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Should be called every time a parameterized test completed with the int value of its test parameter.
parameterValue(Test, int, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Should be called every time a parameterized test completed with the int value of its test parameter.
parameterValue(Test, int, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Should be called every time a parameterized test completed with the int value of its test parameter.
ParameterVariationTestDecorator - Class in org.apache.qpid.junit.extensions
ParameterVariationTestDecorator is a test decorator that runs a test repeatedly under all permutations of its test parameters.
ParameterVariationTestDecorator(WrappedSuiteTestDecorator, int[], int) - Constructor for class org.apache.qpid.junit.extensions.ParameterVariationTestDecorator
Creates an asymptotic test decorator that wraps a test with repeats and a set of integer 'size' paramters to call the test with.
ParameterVariationTestDecorator(WrappedSuiteTestDecorator, int, int, int, int) - Constructor for class org.apache.qpid.junit.extensions.ParameterVariationTestDecorator
Creates a new AsymptoticTestDecorator object.
params - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
The parameter values to pass to parameterized tests.
parseCommandLine(String[]) - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Parses a set of command line arguments into a set of properties, keyed by the argument flag.
parseDecorators(String) - Static method in class org.apache.qpid.junit.extensions.TKTestRunner
Parses a list of test decorators, in the form "class.name[:class.name]*", and creates factories for those TestDecorator classes , and returns a list of the factories.
ParsedProperties - Class in org.apache.qpid.junit.extensions.util
ParsedProperties extends the basic Properties class with methods to extract properties, not as strings but as strings parsed into basic types.
ParsedProperties() - Constructor for class org.apache.qpid.junit.extensions.util.ParsedProperties
Creates an empty ParsedProperties.
ParsedProperties(Properties) - Constructor for class org.apache.qpid.junit.extensions.util.ParsedProperties
Creates a ParsedProperties initialized with the specified properties.
parseDuration(String) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Parses a duration defined as a string, giving a duration in days, hours, minutes and seconds into a number of milliseconds equal to that duration.
parseSequence(String) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Parses a string defintion of a sequence into an int array containing the sequence.
pause(long) - Static method in class org.apache.qpid.junit.extensions.util.TestUtils
Injects a short pause.
peek() - Method in class org.apache.qpid.junit.extensions.util.StackQueue
Retrieves, but does not remove, the head of this queue, returning null if this queue is empty.
poll() - Method in class org.apache.qpid.junit.extensions.util.StackQueue
Retrieves and removes the head of this queue, or null if this queue is empty.
PossibleDeadlockException - Exception in org.apache.qpid.junit.concurrency
PossibleDeadlockException is used to signal that two test threads being executed by a ThreadTestCoordinator may be in a state of deadlock because they are mutually blocking each other or one is waiting on the other and the other has been blocked elsewhere for longer than a specified timeout.
PossibleDeadlockException(String) - Constructor for exception org.apache.qpid.junit.concurrency.PossibleDeadlockException
Create a new possible deadlock execption.
postThreadSetUp() - Method in interface org.apache.qpid.junit.extensions.TestThreadAware
Called after all threads have completed their setup.
printArray(int[]) - Static method in class org.apache.qpid.junit.extensions.util.MathUtils
Pretty prints an array of ints as a string.
processCommandLine(String[], CommandLineParser, Properties) - Static method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Extracts all name=value pairs from the command line, sets them all as system properties and also returns a map of properties containing them.
produceAllowEvents(int[], int, TestRunnable) - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Creates a set of 'allow to continue' events on the event queues of the specified threads.
properties(Properties) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Notifies listeners of the tests read/set properties.
properties(Properties) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Notifies listeners of the tests read/set properties.
properties(Properties) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Notifies listeners of the tests read/set properties.
properties(Properties) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Notifies listeners of the tests read/set properties.

R

registerShutdownHook(ShutdownHookable) - Method in class org.apache.qpid.junit.extensions.TKTestRunner
Registers the shutdown hook of a ShutdownHookable.
remove() - Method in class org.apache.qpid.junit.extensions.util.StackQueue
Retrieves and removes the head of this queue.
repetitions - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Number of times to rerun the test.
reportDir - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Directory to output XML reports into, if specified.
reset() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Resets the instrumentation values to zero, and nulls any references to held measurements so that the memory can be reclaimed.
reset() - Method in interface org.apache.qpid.junit.extensions.InstrumentedTest
Resets the instrumentation values to zero, and nulls any references to held measurements so that the memory can be reclaimed.
reset(Test, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Resets the test results to the default state of time zero, memory usage zero, parameter zero, test passed.
reset(Test, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Resets the test results to the default state of time zero, memory usage zero, test passed.
reset(Test, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Resets the test results to the default state of time zero, memory usage zero, parameter zero, test passed.
reset(Test, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Resets the test results to the default state of time zero, memory usage zero, parameter zero, test passed.
reset() - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Resets this command line parser after it has been used to parse a command line.
restart() - Method in interface org.apache.qpid.junit.extensions.TimingController
Completely restarts the test timer from zero.
result - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Holds the test results object, which is reponsible for instrumenting tests/threads to record results.
results - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Holds results for tests that have ended.
resume() - Method in interface org.apache.qpid.junit.extensions.TimingController
Allows the test timer to continue running after a suspend.
rightPad(String, String, int) - Static method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Right pads a string with a given string to a given size.
run() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Provides a default implementation of the run method that allows exceptions to be thrown and keeps a record of those exceptions.
run() - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Starts all the coordinated threads running.
run(TestResult) - Method in class org.apache.qpid.junit.extensions.AsymptoticTestDecorator
Runs the test repeatedly for each value of the int parameter specified and for the correct number of test repeats.
run(TestResult) - Method in class org.apache.qpid.junit.extensions.DurationTestDecorator
Runs the test repeatedly for the fixed duration.
run(TestResult) - Method in class org.apache.qpid.junit.extensions.ParameterVariationTestDecorator
Runs the test repeatedly for each value of the int parameter specified and for the correct number of test repeats.
run(TestResult) - Method in class org.apache.qpid.junit.extensions.ScaledTestDecorator
Runs the test simultaneously in at the specified concurrency levels.
run(TestCase) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Intercepts the execution of a test case to pass the variable integer parameter to a test if it is a parameterized test case.
runGCTillStable() - Static method in class org.apache.qpid.junit.extensions.util.SizeOf
Runs the garbage collector until the used memory reading stabilizes.
runGCTillStableSeveralTimes() - Static method in class org.apache.qpid.junit.extensions.util.SizeOf
Makes 4 calls the SizeOf.runGCTillStable() method.
runs - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Holds the overall tests run count.
runSetupTasks() - Method in class org.apache.qpid.junit.extensions.SetupTaskHandler
Runs the set up tasks in the order that they way chained.
runTearDownTasks() - Method in class org.apache.qpid.junit.extensions.SetupTaskHandler
Runs the tear down tasks in the reverse of the order in which they were chained.
runTest() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Runs the test method for this test case.
runWithExceptions() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Implementations override this to perform coordinated thread sequencing.

S

ScaledTestDecorator - Class in org.apache.qpid.junit.extensions
A test decorator that runs a test many times simultaneously in many threads.
ScaledTestDecorator(WrappedSuiteTestDecorator) - Constructor for class org.apache.qpid.junit.extensions.ScaledTestDecorator
Creates an active test with default multiplier (1).
ScaledTestDecorator(WrappedSuiteTestDecorator, int) - Constructor for class org.apache.qpid.junit.extensions.ScaledTestDecorator
Creates a concurrently scaled test with the specified number of threads.
ScaledTestDecorator(WrappedSuiteTestDecorator, int[]) - Constructor for class org.apache.qpid.junit.extensions.ScaledTestDecorator
Creates a concurrently scaled test with the specified thread levels, the test is repeated at each level.
SEQUENCE_REGEXP - Static variable in class org.apache.qpid.junit.extensions.util.MathUtils
The sequence defintion matching regular expression.
setConcurrencyLevel(int) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Sets the concurrency level to pass into the test result.
setCoordinator(ThreadTestCoordinator) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Sets the coordinator for this thread.
setDeadlockTimeout(long) - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Sets a timeout to break out of potential deadlocks.
setErrorsOnUnknowns(boolean) - Method in class org.apache.qpid.junit.extensions.util.CommandLineParser
Control the behaviour of the errors on unkowns reporting.
setId(int) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Sets up the explicit int id for this thread.
setN(int) - Method in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Sets the current value of the integer parameter to be passed to the parameterized test.
setN(int) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Sets the integer parameter to pass to parameterized test cases.
setProperty(String, boolean) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties.
setProperty(String, short) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties.
setProperty(String, int) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties.
setProperty(String, long) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties.
setProperty(String, float) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties.
setProperty(String, double) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties.
setProperty(String, String) - Method in class org.apache.qpid.junit.extensions.util.TestContextProperties
Calls the Hashtable method put.
setPropertyIfNull(String, boolean) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, short) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, int) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, long) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, float) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, double) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, String) - Method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting properties to defaults when they are not already set.
setPropertyIfNull(String, String) - Method in class org.apache.qpid.junit.extensions.util.TestContextProperties
Helper method for setting properties to defaults when they are not already set.
setRate(float) - Method in class org.apache.qpid.junit.extensions.BaseThrottle
Specifies the throttling rate in operations per second.
setRate(float) - Method in class org.apache.qpid.junit.extensions.BatchedThrottle
Specifies the throttling rate in operations per second.
setRate(float) - Method in interface org.apache.qpid.junit.extensions.Throttle
Specifies the throttling rate in operations per second.
setSysPropertyIfNull(String, boolean) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setSysPropertyIfNull(String, short) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setSysPropertyIfNull(String, int) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setSysPropertyIfNull(String, long) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setSysPropertyIfNull(String, float) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setSysPropertyIfNull(String, double) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setSysPropertyIfNull(String, String) - Static method in class org.apache.qpid.junit.extensions.util.ParsedProperties
Helper method for setting system properties to defaults when they are not already set.
setThread(Thread) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Sets the Java thread under which this runs.
setTimingController(TimingController) - Method in interface org.apache.qpid.junit.extensions.TimingControllerAware
Used by test runners that can supply a TimingController to set the controller on an aware test.
setups - Variable in class org.apache.qpid.junit.extensions.SetupTaskHandler
Holds the set up tasks.
SetupTaskAware - Interface in org.apache.qpid.junit.extensions
SetupTaskAware is an interface that tests that can accept injectable setup tasks may implement.
SetupTaskHandler - Class in org.apache.qpid.junit.extensions
SetupTaskHandler implements a task stack.
SetupTaskHandler() - Constructor for class org.apache.qpid.junit.extensions.SetupTaskHandler
 
setWaitingOnCoordinator(boolean) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Sets the value of the waiting on coordinator flag.
sharedLock - Variable in class org.apache.qpid.junit.concurrency.ThreadTestExample
A shared lock between the test threads.
ShutdownHookable - Interface in org.apache.qpid.junit.extensions
Defines an interface that classes which supply shutdown hooks implement.
shutdownNow() - Method in class org.apache.qpid.junit.extensions.TKTestResult
Tells this test result that it should stop running tests.
SizeOf - Class in org.apache.qpid.junit.extensions.util
SizeOf provides a static method that does its best to return an accurate measure of the total amount of memory used by the virtual machine.
SizeOf() - Constructor for class org.apache.qpid.junit.extensions.util.SizeOf
 
SleepThrottle - Class in org.apache.qpid.junit.extensions
SleepThrottle is a Throttle implementation that generates short pauses using the thread sleep methods.
SleepThrottle() - Constructor for class org.apache.qpid.junit.extensions.SleepThrottle
 
StackQueue<E> - Class in org.apache.qpid.junit.extensions.util
The Stack class in java.util (most unhelpfully) does not implement the Queue interface.
StackQueue() - Constructor for class org.apache.qpid.junit.extensions.util.StackQueue
 
start(String[]) - Method in class org.apache.qpid.junit.extensions.TestRunnerImprovedErrorHandling
Starts a test run.
start(String) - Method in class org.apache.qpid.junit.extensions.TKTestRunner
Initializes the test runner with the provided command line arguments and and starts the test run.
startBatch() - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Notifies listeners of the start of a complete run of tests.
startBatch() - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Takes a time stamp for the beginning of the batch and resets stats counted for the batch.
startBatch() - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Notifies listeners of the start of a complete run of tests.
startBatch() - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Notifies listeners of the start of a complete run of tests.
startTest(Test) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
A test started.
startTest(Test) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Called when a test starts.
startTest(Test) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Notification that a test started.
startTest(Test) - Method in class org.apache.qpid.junit.extensions.NullResultPrinter
Does nothing.
startTest(Test) - Method in class org.apache.qpid.junit.extensions.TKTestResult
Callback method use to inform this test result that a test will be started.
suite - Variable in class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
Holds the test suite that this supplies access to.
suspend() - Method in interface org.apache.qpid.junit.extensions.TimingController
Suspends the test timer.

T

teardowns - Variable in class org.apache.qpid.junit.extensions.SetupTaskHandler
Holds the tear down tasks.
testAt(int) - Method in class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
Gets the ith test from the test suite.
testCaseName - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Name of the single test case to execute.
testClass - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener.Result
Holds the name of the test class.
testClassName - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Holds the name of the class that tests are being run for.
testClassName - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Name of the test class.
TestContextProperties - Class in org.apache.qpid.junit.extensions.util
TestContextProperties is an extension of ParsedProperties that keeps track of property key/value pairs that are used by tests being run under the TKTestRunner.
testName - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener.Result
Holds the name of the test method.
TestRunnable - Class in org.apache.qpid.junit.concurrency
TestRunnable is an extension of java.util.Runnable that adds some features to make it easier to coordinate the activities of threads in such a way as to expose bugs in multi threaded code.
TestRunnable() - Constructor for class org.apache.qpid.junit.concurrency.TestRunnable
 
testRunName - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Name of the test run.
TestRunnerImprovedErrorHandling - Class in org.apache.qpid.junit.extensions
The TestRunner does not provide very good error handling.
TestRunnerImprovedErrorHandling() - Constructor for class org.apache.qpid.junit.extensions.TestRunnerImprovedErrorHandling
Delegates to the super constructor.
TestRunnerImprovedErrorHandling(PrintStream) - Constructor for class org.apache.qpid.junit.extensions.TestRunnerImprovedErrorHandling
Delegates to the super constructor.
TestRunnerImprovedErrorHandling(ResultPrinter) - Constructor for class org.apache.qpid.junit.extensions.TestRunnerImprovedErrorHandling
Delegates to the super constructor.
testThread1 - Variable in class org.apache.qpid.junit.concurrency.ThreadTestExample
Test thread 1.
testThread2 - Variable in class org.apache.qpid.junit.concurrency.ThreadTestExample
Test thread 2.
TestThreadAware - Interface in org.apache.qpid.junit.extensions
This interface can be implemented by tests that want to know if they are being run concurrently.
TestUtils - Class in org.apache.qpid.junit.extensions.util
Provides commonly used functions that aid testing.
TestUtils() - Constructor for class org.apache.qpid.junit.extensions.util.TestUtils
 
threadLocalMeasurement - Variable in class org.apache.qpid.junit.extensions.AsymptoticTestCase
Thread local for holding measurements on a per thread basis.
threadLocalResults - Variable in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Map for holding results on a per thread basis as they come in.
threadLocalResults - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Map for holding results on a per thread basis as they come in.
threads - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Number of threads running the tests.
threadSetUp() - Method in interface org.apache.qpid.junit.extensions.TestThreadAware
Called when a test thread is created.
threadTearDown() - Method in interface org.apache.qpid.junit.extensions.TestThreadAware
Called when a test thread is destroyed.
ThreadTestCoordinator - Class in org.apache.qpid.junit.concurrency
ThreadTestCoordinator provides an array of binary latches that allows threads to wait for other threads or to send them a signal that allows them to continue running or to wait for another thread to signal them.
ThreadTestCoordinator(int) - Constructor for class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Creates a new test thread coordinator.
ThreadTestCoordinator(int, ThreadFactory) - Constructor for class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Creates a new test thread coordinator with a specific thread factory.
ThreadTestExample - Class in org.apache.qpid.junit.concurrency
An example to illustrate the use of the ThreadTestCoordinator and TestRunnables.
ThreadTestExample() - Constructor for class org.apache.qpid.junit.concurrency.ThreadTestExample
 
throttle() - Method in class org.apache.qpid.junit.extensions.BatchedThrottle
Throttle calls to this method to the rate specified by the BatchedThrottle.setRate(float) method.
throttle - Variable in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Used to throttle the dot writing rate.
throttle() - Method in class org.apache.qpid.junit.extensions.SleepThrottle
This method can only be called at the rate set by the BaseThrottle.setRate(float) method, if it is called faster than this it will inject short pauses to restrict the call rate to that rate.
Throttle - Interface in org.apache.qpid.junit.extensions
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.
throttle() - Method in interface org.apache.qpid.junit.extensions.Throttle
This method can only be called at the rate set by the Throttle.setRate(float) method, if it is called faster than this it will inject short pauses to restrict the call rate to that rate.
TIME_STAMP_FORMAT - Static variable in class org.apache.qpid.junit.extensions.TKTestRunner
Used for generating the timestamp when naming output files.
timing(Test, long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Should be called every time a test completes with the run time of that test.
timing(Test, long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Should be called every time a test completes with the run time of that test.
timing(Test, long, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Should be called every time a test completes with the run time of that test.
timing(Test, long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Should be called every time a test completes with the run time of that test.
timing2(Test, Long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.ConsoleTestListener
Optionally called every time a test completes with the second timing test.
timing2(Test, Long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.CSVTestListener
Optionally called every time a test completes with the second timing test.
timing2(Test, Long, Long) - Method in interface org.apache.qpid.junit.extensions.listeners.TKTestListener
Optionally called every time a test completes with the second timing test.
timing2(Test, Long, Long) - Method in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Optionally called every time a test completes with the second timing test.
TimingController - Interface in org.apache.qpid.junit.extensions
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 - Interface in org.apache.qpid.junit.extensions
TimingControllerAware is an interface that tests that manipulate the timing controller should implement.
TKTestListener - Interface in org.apache.qpid.junit.extensions.listeners
TKTestListener is a listener interface for listeners that want to be informed of the run times of tests, the memory usage of tests, the 'size' parameters of parameterized tests and the begin and end events of complete test runs.
TKTestResult - Class in org.apache.qpid.junit.extensions
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.
TKTestResult(int, String) - Constructor for class org.apache.qpid.junit.extensions.TKTestResult
Creates a new TKTestResult object.
TKTestRunner - Class in org.apache.qpid.junit.extensions
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.
TKTestRunner(Integer, Long, int[], int, int[], String, String, String, boolean, boolean, List<TKTestRunner.TestDecoratorFactory>) - Constructor for class org.apache.qpid.junit.extensions.TKTestRunner
Constructs a TKTestRunner using System.out for all the output.
TKTestRunner.TestDecoratorFactory - Interface in org.apache.qpid.junit.extensions
TestDecoratorFactory is a factory for creating test decorators from tests.
toString() - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Provides a string summary of this test threads status.
toString() - Method in class org.apache.qpid.junit.concurrency.ThreadTestCoordinator
Pretty prints the state of the thread test coordinator, for debugging purposes.
toString() - Method in class org.apache.qpid.junit.extensions.AsymptoticTestDecorator
Prints out the name of this test with the string "(parameterized)" appended onto it for debugging purposes.
toString() - Method in class org.apache.qpid.junit.extensions.ParameterVariationTestDecorator
Prints out the name of this test with the string "(parameterized)" appended onto it for debugging purposes.
toString() - Method in class org.apache.qpid.junit.extensions.ScaledTestDecorator
Prints a string summarizing this test decorator, mainly for debugging purposes.
toString() - Method in class org.apache.qpid.junit.extensions.TKTestResult
Prints a string summary of this class, mainly for debugging purposes.

U

useDefaultEnvironments(boolean) - Method in class org.apache.qpid.junit.extensions.util.ContextualProperties
Tells this environment aware properties object whether it should use default environment properties without a pre-pended environment when a property for the current environment cannot be found.

W

waitFor(int[], boolean) - Method in class org.apache.qpid.junit.concurrency.TestRunnable
Attempt to consume an allow event from one of the specified threads and blocks until such an event occurrs.
WrappedSuiteTestDecorator - Class in org.apache.qpid.junit.extensions
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.
WrappedSuiteTestDecorator(TestSuite) - Constructor for class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
Creates a wrappred suite test decorator from a test suite.
WrappedSuiteTestDecorator(WrappedSuiteTestDecorator) - Constructor for class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
Creates a wrapped suite test decorator from another one.
writer - Variable in class org.apache.qpid.junit.extensions.listeners.XMLTestListener
The results file writer.

X

xmlResults - Variable in class org.apache.qpid.junit.extensions.TKTestRunner
Flag that indiciates the XML results listener should be used to output results.
XMLTestListener - Class in org.apache.qpid.junit.extensions.listeners
Listens for test results for a named test and outputs these in the standard JUnit XML format to the specified writer.
XMLTestListener(Writer, String) - Constructor for class org.apache.qpid.junit.extensions.listeners.XMLTestListener
Creates a new XML results output listener that writes to the specified location.
XMLTestListener.Result - Class in org.apache.qpid.junit.extensions.listeners
Used to capture the results of a particular test run.
XMLTestListener.Result(String, String) - Constructor for class org.apache.qpid.junit.extensions.listeners.XMLTestListener.Result
Creates a placeholder for the results of a test.

A B C D E F G I J L M N O P R S T U W X

Licensed to the Apache Software Foundation