org.specs2.execute

Result

class Result extends AnyRef

The result of an execution, either:

* a success: the execution is ok * a failure: an expectation is not met * an error: an exception occurred * a pending execution: the user has decided that execution must not be performed * a skipped execution: based on dynamic conditions (a database not available for instance) the execution is not performed

A Result has: * a message describing the outcome * a message describing the expectation * possibly a number of expectations when it is the outcome of several checks (this is used for the reporting of ScalaCheck properties).

Attributes
sealed abstract
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Result
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Result (message: String, expected: String, expectationsNb: Int)

Abstract Value Members

  1. def addExpectationsNb (n: Int): Result

    increment the number of expectations

    increment the number of expectations

    Attributes
    abstract
  2. def mute : Result

    returns

    the result with no message

    Attributes
    abstract

Concrete 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 and (r: ⇒ Result): Result

    returns

    the logical and combination of 2 results

  7. def asInstanceOf [T0] : T0

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def coloredStatus (implicit args: Arguments = Arguments()): String

    returns

    the colored textual status of the result

  10. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. val expectationsNb : Int

  13. val expected : String

  14. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def isError : Boolean

    returns

    true if the result is an Error instance

  18. def isFailure : Boolean

    returns

    true if the result is a Failure instance

  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def isPending : Boolean

    returns

    true if the result is a Pending instance

  21. def isSkipped : Boolean

    returns

    true if the result is a Skipped instance

  22. def isSuccess : Boolean

    returns

    true if the result is a Success instance

  23. val message : String

  24. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  27. def or (r: ⇒ Result): Result

    returns

    the logical or combination of 2 results

  28. def status : String

    returns

    the uncolored textual status of the result

  29. def statusName (implicit args: Arguments = Arguments()): String

    returns

    the textual status of the result

  30. def synchronized [T0] (arg0: ⇒ T0): T0

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

    Definition Classes
    AnyRef → Any
  32. def updateMessage (msg: String): Result

    update the message of a result, keeping the subclass type

  33. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any