org.scalatest

StatefulStatus

class StatefulStatus extends Status

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.

Attributes
final
Linear Supertypes
Status, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. StatefulStatus
  2. Status
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StatefulStatus ()

Value Members

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  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. def isInstanceOf [T0] : Boolean

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

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

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

    Attributes
    final
    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.

  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. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  22. def toString (): String

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

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

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

    Attributes
    final
    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

Inherited from Status

Inherited from AnyRef

Inherited from Any