Trait/Object

org.specs2.matcher

ShouldThrownExpectations

Related Docs: object ShouldThrownExpectations | package matcher

Permalink

trait ShouldThrownExpectations extends ThrownExpectations with ShouldExpectations

This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ShouldThrownExpectations
  2. ShouldExpectations
  3. ThrownExpectations
  4. StandardMatchResults
  5. StandardResults
  6. Expectations
  7. MatchResultStackTrace
  8. CanBeEqual
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class CanBeEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    CanBeEqual
  2. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    Expectations
  3. implicit class pendingResult extends AnyRef

    Permalink
    Definition Classes
    StandardResults
  4. implicit class skippedResult extends AnyRef

    Permalink
    Definition Classes
    StandardResults

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit def akaShould[T](tm: Expectable[T]): ShouldExpectable[T]

    Permalink
  5. def anError: Error

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. implicit def canBeEqual[T](t: ⇒ T): CanBeEqualExpectation[T]

    Permalink

    A value can be tested against another with the === operator.

    A value can be tested against another with the === operator. It is equivalent to writing a must_== b

    Definition Classes
    CanBeEqual
  8. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    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
    Expectations
  9. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    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
    ThrownExpectationsExpectations
  10. def checkResultFailure(result: ⇒ Result): Result

    Permalink

    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
    ThrownExpectationsExpectations
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

    Definition Classes
    ThrownExpectationsExpectations
  13. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

    Definition Classes
    Expectations
  14. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a description

    Definition Classes
    Expectations
  15. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink

    returns

    an Expectable

    Definition Classes
    Expectations
  16. def createExpectableWithShowAs[T](t: ⇒ T, show: ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ThrownExpectationsExpectations
  17. def createShouldExpectable[T](t: ⇒ T): ShouldExpectable[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ShouldThrownExpectationsShouldExpectations
  18. implicit def describe[T](t: ⇒ T): Descriptible[T]

    Permalink

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    Expectations
  19. def done: Success

    Permalink
    Definition Classes
    StandardResults
  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def failure(f: Failure): Failure

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  23. def failure(m: String): Failure

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  24. def failure: Failure

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  25. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def ko(m: String): MatchResult[Any]

    Permalink
    Definition Classes
    StandardMatchResults
  30. lazy val ko: MatchResult[Any]

    Permalink
  31. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink

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

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def ok(m: String): MatchResult[Any]

    Permalink
    Definition Classes
    StandardMatchResults
  36. lazy val ok: MatchResult[Any]

    Permalink
    Definition Classes
    StandardMatchResults
  37. def pending(p: Pending): Pending

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  38. def pending(m: String): Pending

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  39. def pending: Pending

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  40. def pending[R](r: ⇒ R)(implicit arg0: AsResult[R]): Pending

    Permalink
    Definition Classes
    StandardResults
  41. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink

    returns

    the value without any side-effects for expectations

    Definition Classes
    ThrownExpectationsExpectations
  42. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    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
  43. def skipped(s: Skipped): Skipped

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  44. def skipped(m: String): Skipped

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  45. def skipped: Skipped

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  46. def skipped[R](r: ⇒ R)(implicit arg0: AsResult[R]): Skipped

    Permalink
    Definition Classes
    StandardResults
  47. def success(m: String): Success

    Permalink
    Attributes
    protected
    Definition Classes
    ThrownExpectations
  48. lazy val success: Success

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. implicit def thisBlock(t: ⇒ Nothing): ShouldExpectable[Nothing]

    Permalink
    Definition Classes
    ShouldExpectations
  51. implicit def thisValue[T](t: ⇒ T): ShouldExpectable[T]

    Permalink
    Definition Classes
    ShouldExpectations
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. def todo: Pending

    Permalink
    Definition Classes
    ThrownExpectations → StandardResults
  54. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def wontdo: Success

    Permalink
    Definition Classes
    StandardResults

Inherited from ShouldExpectations

Inherited from ThrownExpectations

Inherited from StandardMatchResults

Inherited from StandardResults

Inherited from Expectations

Inherited from MatchResultStackTrace

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped