Packages

trait ThrownExpectations extends ThrownExpectationsCreation with ThrownStandardResults with ThrownStandardMatchResults

Thrown expectations will throw a FailureException if a match fails

This trait can be extended to be used in another framework like ScalaTest:

trait ScalaTestExpectations extends ThrownExpectations { override protected def checkFailure[T](m: =>MatchResult[T]) = { m match { case f @ MatchFailure(ok, ko, _, _, _) => throw new TestFailedException(f.message, f.exception, 0) case _ => () } m } }

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThrownExpectations
  2. ThrownStandardMatchResults
  3. StandardMatchResults
  4. ThrownStandardResults
  5. StandardResults
  6. ThrownExpectationsCreation
  7. ThrownExpectables
  8. ExpectationsCreation
  9. MatchResultStackTrace
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 anError: Error
    Definition Classes
    ThrownStandardResults → StandardResults
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  7. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    this method can be overriden to throw exceptions when checking the match result

    this method can be overriden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    ThrownExpectablesExpectationsCreation
  8. def checkResultFailure(result: => Result): Result

    this method can be overridden to throw exceptions when checking the result

    this method can be overridden to throw exceptions when checking the result

    Attributes
    protected
    Definition Classes
    ThrownExpectablesExpectationsCreation
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. def createExpectable[T](t: => T, alias: Option[(String) => String]): Expectable[T]

    returns

    an Expectable with a description function

    Definition Classes
    ThrownExpectablesExpectationsCreation
  11. def createExpectable[T](t: => T, alias: (String) => String): Expectable[T]

    returns

    an Expectable with a description function

    Definition Classes
    ExpectationsCreation
  12. def createExpectable[T](t: => T, alias: => String): Expectable[T]

    returns

    an Expectable with a description

    Definition Classes
    ExpectationsCreation
  13. def createExpectable[T](t: => T): Expectable[T]

    returns

    an Expectable

    Definition Classes
    ExpectationsCreation
  14. def createExpectableWithShowAs[T](t: => T, show: => String): Expectable[T]

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ThrownExpectablesExpectationsCreation
  15. def done: Success
    Definition Classes
    StandardResults
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def failure(f: Failure): Failure
    Attributes
    protected
    Definition Classes
    ThrownStandardResults
  19. def failure(m: String): Failure
    Definition Classes
    ThrownStandardResults → StandardResults
  20. def failure: Failure
    Definition Classes
    ThrownStandardResults → StandardResults
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def ko(m: String): MatchResult[Any]
    Definition Classes
    StandardMatchResults
  25. lazy val ko: MatchResult[Any]
  26. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  30. def ok(m: String): MatchResult[Any]
    Definition Classes
    StandardMatchResults
  31. lazy val ok: MatchResult[Any]
    Definition Classes
    StandardMatchResults
  32. def pending(p: Pending): Pending
    Attributes
    protected
    Definition Classes
    ThrownStandardResults
  33. def pending(m: String): Pending
    Definition Classes
    ThrownStandardResults → StandardResults
  34. def pending: Pending
    Definition Classes
    ThrownStandardResults → StandardResults
  35. def pending[R](r: => R)(implicit arg0: AsResult[R]): Pending
    Definition Classes
    StandardResults
  36. def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

    returns

    the value without any side-effects for expectations

    Definition Classes
    ThrownStandardMatchResultsExpectationsCreation
  37. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  38. def skipped(s: Skipped): Skipped
    Attributes
    protected
    Definition Classes
    ThrownStandardResults
  39. def skipped(m: String): Skipped
    Definition Classes
    ThrownStandardResults → StandardResults
  40. def skipped: Skipped
    Definition Classes
    ThrownStandardResults → StandardResults
  41. def skipped[R](r: => R)(implicit arg0: AsResult[R]): Skipped
    Definition Classes
    StandardResults
  42. def success(m: String): Success
    Attributes
    protected
    Definition Classes
    ThrownStandardResults
  43. lazy val success: Success
    Definition Classes
    ThrownStandardResults → StandardResults
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def todo: Pending
    Definition Classes
    ThrownStandardResults → StandardResults
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. def wontdo: Success
    Definition Classes
    StandardResults

Deprecated Value Members

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

Inherited from StandardMatchResults

Inherited from ThrownStandardResults

Inherited from StandardResults

Inherited from ThrownExpectables

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from AnyRef

Inherited from Any

Ungrouped