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.
java.lang.AssertionError
if the JSRun behaves unexpectedly.
java.util.concurrent.TimeoutException
if 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).
java.lang.AssertionError
if there is some other output on stderr
or the run terminates.
java.util.concurrent.TimeoutException
if there is not enough output for too long.
Waits until the given message is sent to the JVM.
Waits until the given message is sent to the JVM.
java.lang.AssertionError
if there is another message or the run terminates.
java.util.concurrent.TimeoutException
if there is no message for too long.
Marks that no further messages are expected.
Marks that no further messages are expected.
This will make the methods closeRun / fails / succeeds fail if further messages are received.
It is illegal to call expectMsg after expectNoMsgs has been called.
Waits until the given string is output to stdout (in UTF8).
Waits until the given string is output to stdout (in UTF8).
java.lang.AssertionError
if there is some other output on stdout
or the run terminates.
java.util.concurrent.TimeoutException
if 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.
java.lang.AssertionError
if the JSRun succeeded.
java.util.concurrent.TimeoutException
if the JSRun did not terminate in time.
Calls JSComRun#send on the underlying run.
Waits until the underlying JSRun terminates and asserts it succeeded.
Waits until the underlying JSRun terminates and asserts it succeeded.
java.lang.AssertionError
if the JSRun failed.
java.util.concurrent.TimeoutException
if the JSRun did not terminate in time.
A JSComRun instrumented for testing.
Create an instance of this class through one of the overloads of
TestKit.withComRun
orTestKit.startWithCom
.