sealed abstract 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).
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Result
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type SelfType <: Result

Abstract Value Members

  1. abstract def mute: Result

    returns

    the result with no message

  2. abstract def setExpectationsNb(n: Int): SelfType

    set the number of expectations

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addExpectationsNb(n: Int): SelfType

    increment the number of expectations

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def coloredStatus(implicit args: Arguments = Arguments()): String

    returns

    the colored textual status of the result

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val expectationsNb: Int
  11. val expected: String
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def isError: Boolean

    returns

    true if the result is an Error instance

  15. def isFailure: Boolean

    returns

    true if the result is a Failure instance

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def isIssue: Boolean

    returns

    true if the result is a failure or an Error

  18. def isPending: Boolean

    returns

    true if the result is a Pending instance

  19. def isSkipped: Boolean

    returns

    true if the result is a Skipped instance

  20. def isSuccess: Boolean

    returns

    true if the result is a Success instance

  21. def isSuspended: Boolean

    returns

    true if the result is a Skipped or Pending

  22. def isThrownFailure: Boolean

    returns

    true if the result is a Failure that was thrown like a JUnit assertion error or a NotImplemented exception

  23. def mapExpected(f: (String) => String): Result

    change this result's expected

  24. def mapMessage(f: (String) => String): Result

    change this result's message

  25. val message: String
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. def prependMessage(pre: String): Result

    prepend another message and a conjunction depending on the status of this result

  30. def status: String

    returns

    the uncolored textual status of the result

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

    returns

    the textual status of the result

  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def updateExpected(exp: String): Result

    update the expected of a result, keeping the subclass type

  35. def updateMessage(msg: String): Result

    update the message of a result, keeping the subclass type

  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped