|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.testing.threadtester.Scripter<T>
T - the type of object-under-test being scripted.public class Scripter<T>
Runs a sequence of Scripts. One Script is defined as the main
script, and will be executed first. One or more secondary Scripts are
also defined. It is expected that the main script will had control to
one of the secondary scripts. A Script consists of a sequence of one
or more ScriptedTasks. Each task typically performs an operation
on the object-under-test.
| Constructor Summary | |
|---|---|
Scripter(Script<T> main,
Collection<Script<T>> secondaries)
Creates a new Scripter that will run the given main and secondary scripts. |
|
Scripter(Script<T> main,
Script<T> secondary)
Creates a new Scripter that will run the given main script and the given secondary script. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the scripts defined in the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scripter(Script<T> main,
Script<T> secondary)
public Scripter(Script<T> main,
Collection<Script<T>> secondaries)
| Method Detail |
|---|
public void execute()
throws Exception
This method will wait until the first script finishes all of its tasks. Once one script has finished,
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||