class ComRun extends Run
A JSComRun instrumented for testing.
Create an instance of this class through one of the overloads of
TestKit.withComRun
or TestKit.startWithCom
.
- Alphabetic
- By Inheritance
- ComRun
- Run
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Must be called to free all resources of this Run.
-
final
def
closeRun(): Unit
Calls JSRun#close on the underlying JSRun and awaits termination.
Calls JSRun#close on the underlying JSRun and awaits termination.
- Definition Classes
- Run
- Exceptions thrown
java.lang.AssertionError
if the JSRun behaves unexpectedly.java.util.concurrent.TimeoutException
if the JSRun does not terminate in time.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
expectErr(v: String): ComRun.this.type
Waits until the given string is output to stderr (in UTF8).
Waits until the given string is output to stderr (in UTF8).
- Definition Classes
- Run
- Exceptions thrown
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.
-
final
def
expectMsg(expected: String): ComRun.this.type
Waits until the given message is sent to the JVM.
Waits until the given message is sent to the JVM.
- Exceptions thrown
java.lang.AssertionError
if there is another message or the run terminates.java.util.concurrent.TimeoutException
if there is no message for too long.
-
final
def
expectNoMsgs(): ComRun.this.type
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.
- Note
It is illegal to call expectMsg after expectNoMsgs has been called.
-
final
def
expectOut(v: String): ComRun.this.type
Waits until the given string is output to stdout (in UTF8).
Waits until the given string is output to stdout (in UTF8).
- Definition Classes
- Run
- Exceptions thrown
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.
-
final
def
fails(): Unit
Waits until the underlying JSRun terminates and asserts it failed.
Waits until the underlying JSRun terminates and asserts it failed.
- Definition Classes
- Run
- Exceptions thrown
java.lang.AssertionError
if the JSRun succeeded.java.util.concurrent.TimeoutException
if the JSRun did not terminate in time.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def postCloseRunWait(): Unit
- def postStopChecks(): Unit
-
final
def
send(msg: String): ComRun.this.type
Calls JSComRun#send on the underlying run.
-
final
def
succeeds(): Unit
Waits until the underlying JSRun terminates and asserts it succeeded.
Waits until the underlying JSRun terminates and asserts it succeeded.
- Definition Classes
- Run
- Exceptions thrown
java.lang.AssertionError
if the JSRun failed.java.util.concurrent.TimeoutException
if the JSRun did not terminate in time.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )