org.scalatest

StatefulStatus

final class StatefulStatus extends Status with Serializable

Status implementation that can change its state over time.

A StatefulStatus begins its life in a successful state, and will remain successful unless setFailed is called. Once setFailed is called, the status will remain at failed. The setFailed method can be called multiple times (even though invoking it once is sufficient to permanently set the status to failed), but only up until setCompleted has been called. After setCompleted has been called, any invocation of setFailed will be greeted with an IllegalStateException.

Instances of this class are thread safe.

Source
Status.scala
Linear Supertypes
Serializable, Status, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StatefulStatus
  2. Serializable
  3. Status
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StatefulStatus()

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. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  13. def isCompleted: Boolean

    Non-blocking call that returns true if setCompleted has been invoked on this instance, false otherwise.

    Non-blocking call that returns true if setCompleted has been invoked on this instance, false otherwise.

    returns

    true if the test or suite run is already completed, false otherwise.

    Definition Classes
    StatefulStatusStatus
  14. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  18. def setCompleted(): Unit

    Sets the status to completed.

    Sets the status to completed.

    This method may be invoked repeatedly, even though invoking it once is sufficient to set the state of the Status to completed.

  19. def setFailed(): Unit

    Sets the status to failed without changing the completion status.

    Sets the status to failed without changing the completion status.

    This method may be invoked repeatedly, even though invoking it once is sufficient to set the state of the Status to failed, but only up until setCompleted has been called. Once setCompleted has been called, invoking this method will result in a thrown IllegalStateException.

    Exceptions thrown
    IllegalStateException

    if this method is invoked on this instance after setCompleted has been invoked on this instance.

  20. def succeeds(): Boolean

    Blocking call that waits until completion, as indicated by an invocation of setCompleted on this instance, then returns returns false if setFailed was called on this instance, else returns true.

    Blocking call that waits until completion, as indicated by an invocation of setCompleted on this instance, then returns returns false if setFailed was called on this instance, else returns true.

    returns

    true if no tests failed and no suites aborted, false otherwise

    Definition Classes
    StatefulStatusStatus
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def waitUntilCompleted(): Unit

    Blocking call that returns only after setCompleted has been invoked on this StatefulStatus instance.

    Blocking call that returns only after setCompleted has been invoked on this StatefulStatus instance.

    Definition Classes
    StatefulStatusStatus
  27. def whenCompleted(f: (Boolean) ⇒ Unit): Unit

    Registers the passed function to be executed when this status completes.

    Registers the passed function to be executed when this status completes.

    You may register multiple functions, which on completion will be executed in an undefined order.

    Definition Classes
    StatefulStatusStatus

Inherited from Serializable

Inherited from Status

Inherited from AnyRef

Inherited from Any

Ungrouped