|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type under test. It is expected that the runnable will invoke a
method on this class.M - the typed MainRunnable corresponding to this secondary runnable.public interface SecondaryRunnable<T,M extends MainRunnable<T>>
Interface passed to the InterleavedRunner that represents the
secondary thread of execution.
InterleavedRunner,
MainRunnable| Method Summary | |
|---|---|
boolean |
canBlock()
Determines whether this runnable is allowed to block during the test. |
void |
initialize(M main)
Invoked by the framework before running this runnable. |
void |
terminate()
Invoked by the framework after running this runnable. |
| Methods inherited from interface com.google.testing.threadtester.ThrowingRunnable |
|---|
run |
| Method Detail |
|---|
void initialize(M main)
throws Exception
MainRunnable. Any
exceptions thrown will be passed back to the caller of InterleavedRunner.interleave(M, com.google.testing.threadtester.SecondaryRunnable) .
Exception
void terminate()
throws Exception
InterleavedRunner.interleave(M, com.google.testing.threadtester.SecondaryRunnable) .
ExceptionRunResultboolean canBlock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||