org.scalajs.jsenv.test.kit

ComRun

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.

Linear Supertypes
Run, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ComRun
  2. Run
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Must be called to free all resources of this Run.

    Must be called to free all resources of this Run. Does not throw.

    Definition Classes
    Run → AutoCloseable
  9. 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.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def postCloseRunWait(): Unit

    Attributes
    protected
    Definition Classes
    ComRunRun
  25. def postStopChecks(): Unit

    Attributes
    protected
    Definition Classes
    ComRunRun
  26. final def send(msg: String): ComRun.this.type

    Calls JSComRun#send on the underlying run.

  27. 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.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Run

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped