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 message is sent to the JVM.
Waits until the given message is sent to the JVM.
if there is another message or the run terminates.
java.util.concurrent.TimeoutExceptionif 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).
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.
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.
if the JSRun failed.
java.util.concurrent.TimeoutExceptionif 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
.