|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Stepper
Allows an instrumented class to be stepped through line by line. A Stepper is
created by calling ObjectInstrumentation.step(com.google.testing.threadtester.Breakpoint). Typical useage is:
Breakpoint bp = ...
bp.await();
Stepper stepper = instrumentedObject.step(bp);
while(stepper.hasNext()) {
stepper.step();
}
stepper.resume();
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if this stepper can be stepped again. |
void |
resume()
Causes the Stepper's thread to continue running. |
void |
step()
Advances a stepper a single line. |
| Method Detail |
|---|
boolean hasNext()
void step()
throws TestTimeoutException
hasNext() returns false) then this method is equivalent to
calling resume().
TestTimeoutException
void resume()
throws TestTimeoutException
hasNext() has returned false. Otherwise,
use step().
TestTimeoutExceptionBreakpoint.resume()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||