Class

org.scalajs.jsenv.test.kit

Run

Related Doc: package kit

Permalink

class Run extends AutoCloseable

A JSRun instrumented for testing.

Create an instance of this class through one of the overloads of TestKit.withRun or TestKit.start.

Linear Supertypes
AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Run
  2. AutoCloseable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink

    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
  7. final def closeRun(): Unit

    Permalink

    Calls JSRun#close on the underlying JSRun and awaits termination.

    Calls JSRun#close on the underlying JSRun and awaits termination.

    Exceptions thrown

    java.lang.AssertionError if the JSRun behaves unexpectedly.

    java.util.concurrent.TimeoutException if the JSRun does not terminate in time.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def expectErr(v: String): Run.this.type

    Permalink

    Waits until the given string is output to stderr (in UTF8).

    Waits until the given string is output to stderr (in UTF8).

    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.

  11. final def expectOut(v: String): Run.this.type

    Permalink

    Waits until the given string is output to stdout (in UTF8).

    Waits until the given string is output to stdout (in UTF8).

    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.

  12. final def fails(): Unit

    Permalink

    Waits until the underlying JSRun terminates and asserts it failed.

    Waits until the underlying JSRun terminates and asserts it failed.

    Exceptions thrown

    java.lang.AssertionError if the JSRun succeeded.

    java.util.concurrent.TimeoutException if the JSRun did not terminate in time.

  13. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def postCloseRunWait(): Unit

    Permalink
    Attributes
    protected
  21. def postStopChecks(): Unit

    Permalink
    Attributes
    protected
  22. final def succeeds(): Unit

    Permalink

    Waits until the underlying JSRun terminates and asserts it succeeded.

    Waits until the underlying JSRun terminates and asserts it succeeded.

    Exceptions thrown

    java.lang.AssertionError if the JSRun failed.

    java.util.concurrent.TimeoutException if the JSRun did not terminate in time.

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped