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

A

AbstractBreakpoint - Class in com.google.testing.threadtester
Base class for implementations of Breakpoint.
AbstractBreakpoint(Thread) - Constructor for class com.google.testing.threadtester.AbstractBreakpoint
Creates a new breakpoint associated with the given thread.
AbstractBreakpoint() - Constructor for class com.google.testing.threadtester.AbstractBreakpoint
Creates a new breakpoint that is not initially associated with a thread.
addTask(ScriptedTask<T>) - Method in class com.google.testing.threadtester.Script
Adds a task to this Script.
afterCall(String, String) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition just after a call made within a method.
afterCall(Method, Method) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition just after a call made within a method.
afterCalling(Object) - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position after a call to the last method invoked on the target object.
afterCalling(Object) - Method in class com.google.testing.threadtester.Script
 
afterCallingLastMethod() - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position after a call to the last method invoked on the target object.
afterCallingLastMethod() - Method in class com.google.testing.threadtester.Script
 
afterSync(String, Object) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the end of a synchronized block, after the lock has been released
afterSync(Method, Object) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the end of a synchronized block, after the lock has been released
AnnotatedTestRunner - Class in com.google.testing.threadtester
Runs a set of multithreaded tests defined by a series of annotations.
AnnotatedTestRunner() - Constructor for class com.google.testing.threadtester.AnnotatedTestRunner
 
AnnotatedTestWrapper - Class in com.google.testing.threadtester
Implementation of BaseTestWrapper designed for use with AnnotatedTestRunner.
AnnotatedTestWrapper() - Constructor for class com.google.testing.threadtester.AnnotatedTestWrapper
 
atEndOf(Object) - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position at the end of the last method invoked on the control object.
atEndOf(Object) - Method in class com.google.testing.threadtester.Script
 
atEndOfLastMethod() - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position at the end of the last method invoked on the control object.
atEndOfLastMethod() - Method in class com.google.testing.threadtester.Script
 
atLine(int) - Method in interface com.google.testing.threadtester.CallLogger
 
atMethodEnd(String) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the end of a method, after all of the code in the method has executed.
atMethodEnd(Method) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the end of a method, after all of the code in the method has executed.
atMethodStart(String) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the start of a method, before any of the code in the method executes.
atMethodStart(Method) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the start of a method, before any of the code in the method executes.
atStartOf(Object) - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position at the beginning of the last method invoked on the control object.
atStartOf(Object) - Method in class com.google.testing.threadtester.Script
 
atStartOfLastMethod() - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position at the beginning of the last method invoked on the control object.
atStartOfLastMethod() - Method in class com.google.testing.threadtester.Script
 
await() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
await() - Method in interface com.google.testing.threadtester.Breakpoint
Waits for this breakpoint to be reached.

B

BaseTestWrapper - Interface in com.google.testing.threadtester
Interface for running a set of multi-threaded tests.
BaseThreadedTestRunner - Class in com.google.testing.threadtester
Runs a set of multithreaded tests.
BaseThreadedTestRunner() - Constructor for class com.google.testing.threadtester.BaseThreadedTestRunner
 
beforeCall(String, String) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition just before a call to a target method from within the main method.
beforeCall(Method, Method) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition just before a call made within a method.
beforeCalling(Object) - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position before a call to the last method invoked on the target object.
beforeCalling(Object) - Method in class com.google.testing.threadtester.Script
 
beforeCallingLastMethod() - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position before a call to the last method invoked on the target object.
beforeCallingLastMethod() - Method in class com.google.testing.threadtester.Script
 
beforeSync(String, Object) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the start of a synchronized block, before the lock has beebn taken.
beforeSync(Method, Object) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns a CodePosition representing the start of a synchronized block, before the lock has beebn taken.
beginCall(Method, int, Method) - Method in interface com.google.testing.threadtester.CallLogger
 
blocked - Variable in class com.google.testing.threadtester.AbstractBreakpoint
Set to true if the thread breakpoint is curently blocked.
Breakpoint - Interface in com.google.testing.threadtester
Represents a request for execution to block at a particular position.
breakpoint(Thread) - Method in class com.google.testing.threadtester.MethodRecorder
Creates a Breakpoint for the current CodePosition in the given thread.
BreakpointHandler - Interface in com.google.testing.threadtester
A handler that can be added to a Breakpoint.

C

CallLogger - Interface in com.google.testing.threadtester
An instance of a CallLogger is provided for every instance of an instrumented class under test.
CallLoggerFactory - Class in com.google.testing.threadtester
Creates a CallLogger for every instrumented class.
canBlock() - Method in interface com.google.testing.threadtester.SecondaryRunnable
Determines whether this runnable is allowed to block during the test.
canBlock() - Method in class com.google.testing.threadtester.SecondaryRunnableImpl
Implements SecondaryRunnableImpl.canBlock().
ClassInstrumentation - Interface in com.google.testing.threadtester
Contains information about a class that has been instrumented.
CodePosition - Class in com.google.testing.threadtester
Represents a point of execution within the code of a given class.
CodePosition() - Constructor for class com.google.testing.threadtester.CodePosition
 
com.google.testing.instrumentation - package com.google.testing.instrumentation
 
com.google.testing.threadtester - package com.google.testing.threadtester
 
createBreakpoint(CodePosition, Thread) - Method in interface com.google.testing.threadtester.ObjectInstrumentation
Creates a new Breakpoint for the given CodePosition and Thread, both of which must be non-null.
createLoggerForNewObject(Object) - Static method in class com.google.testing.threadtester.CallLoggerFactory
Method called by instrumented code from within the instrumented constructor.
createTarget(Class<T>) - Method in class com.google.testing.threadtester.MethodRecorder
Creates a target object of the given class.
createTarget(Class<T>) - Method in class com.google.testing.threadtester.Script
 

D

DEFAULT_TEST - Static variable in annotation type com.google.testing.threadtester.ThreadedMain
 
disable() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
disable() - Method in interface com.google.testing.threadtester.Breakpoint
Disables the Breakpoint.
doesMatch(CodePosition) - Method in class com.google.testing.threadtester.SinglePositionBreakpoint
 

E

enable() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
enable() - Method in interface com.google.testing.threadtester.Breakpoint
Enables the Breakpoint.
enabled - Variable in class com.google.testing.threadtester.AbstractBreakpoint
Set to true if this breakpoint is curently enabled.
end(Method) - Method in interface com.google.testing.threadtester.CallLogger
 
endCall(Method, int, Method) - Method in interface com.google.testing.threadtester.CallLogger
 
execute() - Method in class com.google.testing.threadtester.ScriptedTask
Executes this task.
execute() - Method in class com.google.testing.threadtester.Scripter
Executes the scripts defined in the constructor.

F

findClass(String) - Method in class com.google.testing.instrumentation.InstrumentedClassLoader
 
finish() - Method in class com.google.testing.threadtester.TestThread
Waits for this thread to finish.
finishWaiting() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 

G

GET_METHOD - Static variable in class com.google.testing.threadtester.TestInstrumenter
 
getBlockerId(Thread) - Static method in class com.google.testing.threadtester.ThreadMonitor
Returns the thread id of the thread that is blocking the input thread.
getCalledClasses() - Method in class com.google.testing.threadtester.LineInstrumentation
 
getCalledMethods() - Method in class com.google.testing.threadtester.LineInstrumentation
 
getClassInstrumentation(Class<T>) - Static method in class com.google.testing.threadtester.Instrumentation
Returns the ClassInstrumentation corresponding to a given class.
getClassInstrumentationForObject(T) - Static method in class com.google.testing.threadtester.Instrumentation
Returns the ClassInstrumentation corresponding to the class of the given object.
getClassUnderTest() - Method in interface com.google.testing.threadtester.MainRunnable
Returns the class being tested by this runnable.
getClassUnderTest() - Method in class com.google.testing.threadtester.MainRunnableImpl
 
getControl() - Method in class com.google.testing.threadtester.MethodRecorder
Gets the control object.
getException() - Method in class com.google.testing.threadtester.TestThread
Gets the Throwable thrown by the Thread.run() method, or null if there is no such exception.
getExpectedClass(String) - Method in class com.google.testing.instrumentation.InstrumentedClassLoader
Loads a class, and throws an IllegalArgumentException if the class cannot be loaded.
getFactory() - Static method in class com.google.testing.threadtester.CallLoggerFactory
Gets a CallLoggerFactory instance.
getHits() - Method in class com.google.testing.threadtester.AbstractBreakpoint
Gets the number of times that this Breakpoint has been hit.
getId() - Method in class com.google.testing.threadtester.AbstractBreakpoint
Returns a unique integer specifying this breakpoint.
getLimit() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
getLimit() - Method in interface com.google.testing.threadtester.Breakpoint
Gets the limit.
getLineNumber() - Method in class com.google.testing.threadtester.LineInstrumentation
 
getLines() - Method in interface com.google.testing.threadtester.MethodInstrumentation
Returns the lines in this method.
getLines() - Method in class com.google.testing.threadtester.MethodInstrumentationImpl
 
getMainException() - Method in class com.google.testing.threadtester.RunResult
Gets the exception thrown by the MainRunnable
getMainObject() - Method in interface com.google.testing.threadtester.MainRunnable
Gets the main object being tested.
getMainObject() - Method in class com.google.testing.threadtester.MainRunnableImpl
 
getMethod(String) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns the instrumented method for the given method name.
getMethod(Method) - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns the instrumented method for the given method.
getMethod() - Method in interface com.google.testing.threadtester.MainRunnable
Gets the method being tested by this runnable.
getMethod() - Method in class com.google.testing.threadtester.MainRunnableImpl
 
getMethodName() - Method in interface com.google.testing.threadtester.MainRunnable
Gets the name of the method being tested by this runnable.
getMethodName() - Method in class com.google.testing.threadtester.MainRunnableImpl
 
getMethods() - Method in interface com.google.testing.threadtester.ClassInstrumentation
Returns the instrumented methods in this class.
getName() - Method in interface com.google.testing.threadtester.MethodInstrumentation
Returns the name of the method.
getName() - Method in class com.google.testing.threadtester.MethodInstrumentationImpl
 
getNamedClassInstrumentation(String) - Static method in class com.google.testing.threadtester.Instrumentation
Returns the ClassInstrumentation corresponding to a given classname.
getNumLines() - Method in interface com.google.testing.threadtester.MethodInstrumentation
Returns the number of executable lines in the method.
getNumLines() - Method in class com.google.testing.threadtester.MethodInstrumentationImpl
 
getObjectInstrumentation(Object) - Method in class com.google.testing.threadtester.CallLoggerFactory
Gets an ObjectInstrumentationImpl for a given object.
getObjectInstrumentation(T) - Static method in class com.google.testing.threadtester.Instrumentation
Returns the ObjectInstrumentation corresponding to a given object.
getPositionDescription() - Method in class com.google.testing.threadtester.SinglePositionBreakpoint
 
getSecondaryException() - Method in class com.google.testing.threadtester.RunResult
Gets the exception thrown by the SecondaryRunnable
getThread() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
getThread() - Method in interface com.google.testing.threadtester.Breakpoint
Gets the thread associated with this Breakpoint, if any.
getThread() - Method in exception com.google.testing.threadtester.TestTimeoutException
Gets the thread that was executing the operation that timed out.
getUnderlyingMethod() - Method in interface com.google.testing.threadtester.MethodInstrumentation
Returns the Java Method object corresponding to this method.
getUnderlyingMethod() - Method in class com.google.testing.threadtester.MethodInstrumentationImpl
 
getUnderlyingObject() - Method in interface com.google.testing.threadtester.ObjectInstrumentation
Gets the underlying object
getWrapperName() - Method in class com.google.testing.threadtester.AnnotatedTestRunner
 
getWrapperName() - Method in class com.google.testing.threadtester.BaseThreadedTestRunner
Gets the name of the wrapper class that runs the test.
getWrapperName() - Method in class com.google.testing.threadtester.ThreadedTestRunner
 

H

hadException() - Method in class com.google.testing.threadtester.RunResult
 
handleBreakpoint(Breakpoint) - Method in interface com.google.testing.threadtester.BreakpointHandler
Invoked when the breakpoint is reached.
hasNext() - Method in interface com.google.testing.threadtester.Stepper
Returns true if this stepper can be stepped again.
hitBreakpoint() - Method in class com.google.testing.threadtester.AbstractBreakpoint
This method should be invoked by subclasses when the Breakpoint has been hit.

I

in(Object) - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position within the last method invoked on the control object.
in(Object) - Method in class com.google.testing.threadtester.Script
 
initialize() - Method in interface com.google.testing.threadtester.MainRunnable
Invoked by the framework before running this runnable.
initialize() - Method in class com.google.testing.threadtester.MainRunnableImpl
 
initialize(M) - Method in interface com.google.testing.threadtester.SecondaryRunnable
Invoked by the framework before running this runnable.
initialize(M) - Method in class com.google.testing.threadtester.SecondaryRunnableImpl
 
inLastMethod() - Method in class com.google.testing.threadtester.MethodRecorder
Sets the state of the recorder to represent a position within the last method invoked on the control object.
inLastMethod() - Method in class com.google.testing.threadtester.Script
 
instrument(String, byte[]) - Method in interface com.google.testing.instrumentation.Instrumenter
Transforms an array of bytes that defines a class.
instrument(String, byte[]) - Method in class com.google.testing.threadtester.TestInstrumenter
 
Instrumentation<T> - Class in com.google.testing.threadtester
Factory for obtaining instrumented classes and objects.
InstrumentedClassLoader - Class in com.google.testing.instrumentation
A custom ClassLoader that performs byte-code instrumentation on all loaded classes.
InstrumentedClassLoader(Instrumenter) - Constructor for class com.google.testing.instrumentation.InstrumentedClassLoader
Creates a new instrumented class loader using the given Instrumenter.
Instrumenter - Interface in com.google.testing.instrumentation
An object that transforms the byte code that defines a class.
interleave(M, SecondaryRunnable<T, M>) - Static method in class com.google.testing.threadtester.InterleavedRunner
Invokes two runnable instances, interleaving the execution.
interleave(M, SecondaryRunnable<T, M>, List<CodePosition>) - Static method in class com.google.testing.threadtester.InterleavedRunner
Invokes two runnable instances, interleaving the execution.
interleaveAfter(M, SecondaryRunnable<T, M>, CodePosition, int) - Static method in class com.google.testing.threadtester.InterleavedRunner
Invokes two runnable instances, interleaving the execution.
interleaveAtBreakpoint(Runnable, Runnable, ReusableBreakpoint) - Static method in class com.google.testing.threadtester.InterleavedRunner
Version of InterleavedRunner.interleave(MainRunnable, SecondaryRunnable, List) that uses ordinary Runnables, and takes a single ReusableBreakpoint.
interleaveAtBreakpoint(M, SecondaryRunnable<T, M>, ReusableBreakpoint) - Static method in class com.google.testing.threadtester.InterleavedRunner
Version of InterleavedRunner.interleave(MainRunnable, SecondaryRunnable, List) that takes a single ReusableBreakpoint
interleaveAtReusableBreakpoints(M, SecondaryRunnable<T, M>, List<ReusableBreakpoint>) - Static method in class com.google.testing.threadtester.InterleavedRunner
Invokes two runnable instances, interleaving the execution using the supplied list of ReusableBreakpoints.
InterleavedRunner - Class in com.google.testing.threadtester
Utility class that tests two interleaved threads.
inThreadedTest() - Method in class com.google.testing.threadtester.BaseThreadedTestRunner
Returns true when called within a multithreaded test that has been executed via a subclass of this class.
isBlocked() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
isBlocked() - Method in interface com.google.testing.threadtester.Breakpoint
Returns true if the associated thread is currently blocked at this breakpoint.
isEnabled() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
isEnabled() - Method in interface com.google.testing.threadtester.Breakpoint
Returns true if this breakpoint is enabled.

L

limit - Variable in class com.google.testing.threadtester.AbstractBreakpoint
The number of times this breakpoint can be hit before activating.
LineInstrumentation - Class in com.google.testing.threadtester
Represents a single source line in an instrumented class.
LineInstrumentation(int) - Constructor for class com.google.testing.threadtester.LineInstrumentation
 
LineInstrumentation(int, List<String>, List<String>) - Constructor for class com.google.testing.threadtester.LineInstrumentation
 
loadClass(String, boolean) - Method in class com.google.testing.instrumentation.InstrumentedClassLoader
 
LOGGER - Static variable in class com.google.testing.threadtester.TestInstrumenter
 

M

MainRunnable<T> - Interface in com.google.testing.threadtester
Interface passed to the InterleavedRunner that represents the main thread of execution.
MainRunnableImpl<T> - Class in com.google.testing.threadtester
Implementation of MainRunnable with empty methods.
MainRunnableImpl() - Constructor for class com.google.testing.threadtester.MainRunnableImpl
 
METHOD_TABLE - Static variable in class com.google.testing.threadtester.TestInstrumenter
 
MethodInstrumentation - Interface in com.google.testing.threadtester
Contains information about a method that has been instrumented.
MethodInstrumentationImpl - Class in com.google.testing.threadtester
Represents a method within an instrumented class.
MethodInstrumentationImpl(Method, List<LineInstrumentation>) - Constructor for class com.google.testing.threadtester.MethodInstrumentationImpl
 
MethodRecorder<T> - Class in com.google.testing.threadtester
Provides a mechanism for creating CodePositions for a given object-under-test, using direct method calls.
MethodRecorder(T) - Constructor for class com.google.testing.threadtester.MethodRecorder
Creates a new MethodRecorder for the given object.
MethodRecorder(Class<T>) - Constructor for class com.google.testing.threadtester.MethodRecorder
Creates a new MethodRecorder for the given class.

N

numHits - Variable in class com.google.testing.threadtester.AbstractBreakpoint
The number of times this breakpoint has been hit.

O

object() - Method in class com.google.testing.threadtester.Script
Returns a control object that can be used to define release points in the object-under-test.
ObjectInstrumentation<T> - Interface in com.google.testing.threadtester
Contains information about an instance of a class that has been instrumented.

P

position() - Method in class com.google.testing.threadtester.MethodRecorder
Creates a new CodePosition corresponding to the last methods called on the control object, and optionally on a target object.
premain(String, Instrumentation) - Static method in class com.google.testing.threadtester.TestInstrumenter
The premain method that will be invoked if the TestInstrumenter is used in conjunction with the -javaagent command-line option.

R

releaseTo(Script<T>) - Method in class com.google.testing.threadtester.Script
Declares an intent to release control to another thread in the future, or performs the actual release now.
releaseTo(Script<T>) - Method in class com.google.testing.threadtester.ScriptedTask
Releases control to another script.
reset() - Method in class com.google.testing.threadtester.AbstractBreakpoint
Resets the breakpoint.
resume(Breakpoint) - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
resume() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
resume() - Method in interface com.google.testing.threadtester.Breakpoint
Tells the blocked thread to continue.
resume(Breakpoint) - Method in interface com.google.testing.threadtester.Breakpoint
Tells the blocked thread to continue, and then wait for the given breakpoint.
resume() - Method in interface com.google.testing.threadtester.Stepper
Causes the Stepper's thread to continue running.
ReusableBreakpoint - Interface in com.google.testing.threadtester
A Breakpoint designed for repeated use.
run() - Method in interface com.google.testing.threadtester.ThrowingRunnable
Executes the main task of this ThrowingRunnable.
RunResult - Class in com.google.testing.threadtester
Represents the result of running an InterleavedRunner.
RunResult() - Constructor for class com.google.testing.threadtester.RunResult
 
RunResult(Throwable, Throwable) - Constructor for class com.google.testing.threadtester.RunResult
 
runTests(Class<?>, List<String>) - Method in class com.google.testing.threadtester.AnnotatedTestWrapper
 
runTests(Class<?>, List<String>) - Method in interface com.google.testing.threadtester.BaseTestWrapper
Runs the multithreaded tests defined in the given test class.
runTests(Class<?>, Class<?>...) - Method in class com.google.testing.threadtester.BaseThreadedTestRunner
Run the multithreaded tests defined in a given class.
runTests(Class<?>, List<Class<?>>) - Method in class com.google.testing.threadtester.BaseThreadedTestRunner
Run the multithreaded tests defined in a given class.
runTests(Class<?>, List<String>) - Method in class com.google.testing.threadtester.ThreadedTestWrapper
 

S

Script<T> - Class in com.google.testing.threadtester
A Script represents a sequence of operations carried out on an object-under-test.
Script(T) - Constructor for class com.google.testing.threadtester.Script
Creates a new Script that will operate on the given object-under-test.
Script(Script<T>) - Constructor for class com.google.testing.threadtester.Script
Creates a new Script that will operate on the same object-under-test as another Script.
ScriptedTask<T> - Class in com.google.testing.threadtester
A task added to a Script.
ScriptedTask() - Constructor for class com.google.testing.threadtester.ScriptedTask
 
Scripter<T> - Class in com.google.testing.threadtester
Runs a sequence of Scripts.
Scripter(Script<T>, Script<T>) - Constructor for class com.google.testing.threadtester.Scripter
Creates a new Scripter that will run the given main script and the given secondary script.
Scripter(Script<T>, Collection<Script<T>>) - Constructor for class com.google.testing.threadtester.Scripter
Creates a new Scripter that will run the given main and secondary scripts.
SecondaryRunnable<T,M extends MainRunnable<T>> - Interface in com.google.testing.threadtester
Interface passed to the InterleavedRunner that represents the secondary thread of execution.
SecondaryRunnableImpl<T,M extends MainRunnable<T>> - Class in com.google.testing.threadtester
Implementation of SecondaryRunnable with empty methods.
SecondaryRunnableImpl() - Constructor for class com.google.testing.threadtester.SecondaryRunnableImpl
 
setCalledClasses(List<String>) - Method in class com.google.testing.threadtester.LineInstrumentation
 
setCalledMethods(List<String>) - Method in class com.google.testing.threadtester.LineInstrumentation
 
setDebug(boolean) - Method in class com.google.testing.threadtester.BaseThreadedTestRunner
Sets the debug mode.
setHandler(BreakpointHandler) - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
setHandler(BreakpointHandler) - Method in interface com.google.testing.threadtester.Breakpoint
Sets a handler for this Breakpoint.
setLimit(int) - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
setLimit(int) - Method in interface com.google.testing.threadtester.Breakpoint
Sets the limit.
setThread(Thread) - Method in interface com.google.testing.threadtester.ReusableBreakpoint
Sets the thread associated with this breakpoint.
setThreadImpl(Thread) - Method in class com.google.testing.threadtester.AbstractBreakpoint
Sets the thread associated with this breakpoint, and calls reset().
setTimeout(long) - Method in class com.google.testing.threadtester.BaseThreadedTestRunner
Sets the timeout value (in milliseconds) used for all internal waits and joins.
SinglePositionBreakpoint - Class in com.google.testing.threadtester
A Breakpoint based on a single CodePosition.
SinglePositionBreakpoint(Thread, CodePosition) - Constructor for class com.google.testing.threadtester.SinglePositionBreakpoint
 
start(Method) - Method in interface com.google.testing.threadtester.CallLogger
 
step(Breakpoint) - Method in interface com.google.testing.threadtester.ObjectInstrumentation
Steps to the next executable line from a given breakpoint, assuming that breakpoint has already been reached.
step() - Method in interface com.google.testing.threadtester.Stepper
Advances a stepper a single line.
Stepper - Interface in com.google.testing.threadtester
Allows an instrumented class to be stepped through line by line.

T

terminate() - Method in interface com.google.testing.threadtester.MainRunnable
Invoked by the framework after running this runnable.
terminate() - Method in class com.google.testing.threadtester.MainRunnableImpl
 
terminate() - Method in interface com.google.testing.threadtester.SecondaryRunnable
Invoked by the framework after running this runnable.
terminate() - Method in class com.google.testing.threadtester.SecondaryRunnableImpl
 
TestInstrumenter - Class in com.google.testing.threadtester
An Instrumenter that transforms a class' bytecode in order to add tracing calls to a CallLogger.
TestInstrumenter(List<String>) - Constructor for class com.google.testing.threadtester.TestInstrumenter
Creates a new TestInstrumenter that will instrumented the given list of named classes.
TestThread - Class in com.google.testing.threadtester
Implementation of Thread that catches and stores any Exception thrown by the Thread.run() method.
TestThread(Runnable, String) - Constructor for class com.google.testing.threadtester.TestThread
Creates a new TestThread that executes the given Runnable.
TestThread(ThrowingRunnable, String) - Constructor for class com.google.testing.threadtester.TestThread
Creates a new TestThread that executes the given TestRunnable.
TestThread(String) - Constructor for class com.google.testing.threadtester.TestThread
Creates a new TestThread with the given name.
TestTimeoutException - Exception in com.google.testing.threadtester
Exception throw by the test framework if a test operation does not complete during the time specified by Options.timeout.
TestTimeoutException(Thread) - Constructor for exception com.google.testing.threadtester.TestTimeoutException
Creates a new exception after a timeout in the given thread.
TestTimeoutException(String, Thread) - Constructor for exception com.google.testing.threadtester.TestTimeoutException
Creates a new exception after a timeout in the given thread, with the given message.
thread - Variable in class com.google.testing.threadtester.AbstractBreakpoint
The thread associated with this breakpoint.
ThreadedAfter - Annotation Type in com.google.testing.threadtester
An annotation that designates part of a test suite that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadedAfterAll - Annotation Type in com.google.testing.threadtester
An optional annotation that designates part of a test suite that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadedBefore - Annotation Type in com.google.testing.threadtester
An annotation that designates part of a test suite that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadedBeforeAll - Annotation Type in com.google.testing.threadtester
An optional annotation that designates part of a test suite that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadedMain - Annotation Type in com.google.testing.threadtester
An annotation that designates part of a test case that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadedSecondary - Annotation Type in com.google.testing.threadtester
An annotation that designates part of a test case that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadedTest - Annotation Type in com.google.testing.threadtester
An annotation that designates a test that uses the ThreadedTestRunner framework to perform multithreaded tests.
ThreadedTest.NoException - Class in com.google.testing.threadtester
Default value for the ThreadedTest.expected() parameter.
ThreadedTest.NoException() - Constructor for class com.google.testing.threadtester.ThreadedTest.NoException
 
ThreadedTestRunner - Class in com.google.testing.threadtester
Runs a set of multithreaded tests.
ThreadedTestRunner() - Constructor for class com.google.testing.threadtester.ThreadedTestRunner
 
ThreadedTestWrapper - Class in com.google.testing.threadtester
Implementation of BaseTestWrapper designed for use with ThreadedTestRunner.
ThreadedTestWrapper() - Constructor for class com.google.testing.threadtester.ThreadedTestWrapper
 
ThreadedVerification - Annotation Type in com.google.testing.threadtester
An annotation that designates part of a test case that uses the AnnotatedTestRunner framework to perform multithreaded tests.
ThreadMonitor - Class in com.google.testing.threadtester
Utility class that monitors two threads, and waits for one of them to finish.
ThreadMonitor(Thread, Thread) - Constructor for class com.google.testing.threadtester.ThreadMonitor
Creates a new ThreadMonitor for the given threads.
throwExceptionsIfAny() - Method in class com.google.testing.threadtester.RunResult
Throws the main and/or secondary exceptions if they are non-null.
throwExceptionsIfAny() - Method in class com.google.testing.threadtester.TestThread
Rethrows the Throwable thrown by the Thread.run() method, wrapped in a RuntimeException if necessary.
ThrowingRunnable - Interface in com.google.testing.threadtester
A variant of Runnable whose main execution method is declared to throw an Exception.
toString() - Method in class com.google.testing.threadtester.AbstractBreakpoint
 
toString() - Method in class com.google.testing.threadtester.RunResult
 
toString() - Method in class com.google.testing.threadtester.Script
 
transform(ClassLoader, String, Class, ProtectionDomain, byte[]) - Method in class com.google.testing.threadtester.TestInstrumenter
 

W

waitForThread() - Method in class com.google.testing.threadtester.ThreadMonitor
Waits for the first thread to terminate.

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

Copyright © 2013. All Rights Reserved.