com.google.testing.threadtester
Interface ReusableBreakpoint
- All Superinterfaces:
- Breakpoint
public interface ReusableBreakpoint
- extends Breakpoint
A Breakpoint designed for repeated use. The normal Breakpoints created by
ObjectInstrumentation are single-shot objects, which can only be used
once. An ReusableBreakpoint is designed to be used multiple times. Typical
implementations of ReusableBreakpoint will be based on mechanisms other than
bytecode instrumentation.
An ReusableBreakpoint is normally used in conjunction with an InterleavedRunner.
- Author:
- alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
|
Method Summary |
void |
setThread(Thread thread)
Sets the thread associated with this breakpoint. |
| Methods inherited from interface com.google.testing.threadtester.Breakpoint |
await, disable, enable, getLimit, getThread, isBlocked, isEnabled, resume, resume, setHandler, setLimit |
setThread
void setThread(Thread thread)
- Sets the thread associated with this breakpoint. Invoking this method will
also reset other internal state. This method may be invoked before a
breakpoint is used, or after a thread has called
Breakpoint.await() followed
by Breakpoint.resume().
Copyright © 2013. All Rights Reserved.