Must be called to free all resources of this Run.
Calls JSRun#close on the underlying JSRun and awaits termination.
Calls JSRun#close on the underlying JSRun and awaits termination.
if the JSRun behaves unexpectedly.
java.util.concurrent.TimeoutExceptionif the JSRun does not terminate in time.
Waits until the given string is output to stderr (in UTF8).
Waits until the given string is output to stderr (in UTF8).
if there is some other output on stderr or the run terminates.
java.util.concurrent.TimeoutExceptionif there is not enough output for too long.
Waits until the given string is output to stdout (in UTF8).
Waits until the given string is output to stdout (in UTF8).
if there is some other output on stdout or the run terminates.
java.util.concurrent.TimeoutExceptionif there is not enough output for too long.
Waits until the underlying JSRun terminates and asserts it failed.
Waits until the underlying JSRun terminates and asserts it failed.
if the JSRun succeeded.
java.util.concurrent.TimeoutExceptionif the JSRun did not terminate in time.
Waits until the underlying JSRun terminates and asserts it succeeded.
Waits until the underlying JSRun terminates and asserts it succeeded.
if the JSRun failed.
java.util.concurrent.TimeoutExceptionif the JSRun did not terminate in time.
A JSRun instrumented for testing.
Create an instance of this class through one of the overloads of
TestKit.withRun
orTestKit.start
.