org.specs2.matcher

ShouldThrownExpectations

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. ScopedExpectations
  5. StandardMatchResults
  6. StandardResults
  7. Expectations
  8. CanBeEqual
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class CanBeEqualExpectation[T] extends AnyRef

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

    Definition Classes
    Expectations
  3. implicit class pendingResult extends AnyRef

    any block of code following a pending object will be pending

  4. implicit class skippedResult extends AnyRef

    any block of code following a skipped object will be skipped

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. implicit def akaShould[T](tm: Expectable[T]): ShouldExpectable[T]

  7. def anError: Error

    Definition Classes
    ThrownExpectationsStandardResults
  8. final def asInstanceOf[T0]: T0

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

    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
  10. def checkFailure[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
    Expectations
  11. 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
    ThrownExpectationsExpectations
  12. def checkResultFailure(r: Result): Result

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

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

    Attributes
    protected
    Definition Classes
    ThrownExpectationsExpectations
  13. def clone(): AnyRef

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

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

    returns

    an Expectable

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

    returns

    an Expectable with a function to show the element T

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

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

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    Expectations
  21. def done: Success

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

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

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

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

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  26. def failure: Failure

    Definition Classes
    ThrownExpectationsStandardResults
  27. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  30. implicit def inScope(s: Scope): Success

    transform a scope to a success to be able to create traits containing any variables and usable in any Examples

    transform a scope to a success to be able to create traits containing any variables and usable in any Examples

    Definition Classes
    ScopedExpectations
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def ko(m: String): MatchFailure[None.type]

    Definition Classes
    StandardMatchResults
  33. lazy val ko: MatchFailure[None.type]

  34. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

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

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

    Attributes
    protected
    Definition Classes
    Expectations
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def ok(m: String): MatchSuccess[None.type]

    Definition Classes
    StandardMatchResults
  39. lazy val ok: MatchSuccess[None.type]

    Definition Classes
    StandardMatchResults
  40. def pending(s: Pending): Pending

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

    Definition Classes
    ThrownExpectationsStandardResults
  42. def pending: Pending

    Definition Classes
    ThrownExpectationsStandardResults
  43. def pending[R](r: ⇒ R)(implicit arg0: AsResult[R]): Pending

    Definition Classes
    StandardResults
  44. implicit def scopeAsResult[S <: Scope]: AsResult[S]

    typeclass to transform a Scope to a Result

    typeclass to transform a Scope to a Result

    Definition Classes
    ScopedExpectations
  45. def skipped(s: Skipped): Skipped

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

    Definition Classes
    ThrownExpectationsStandardResults
  47. def skipped: Skipped

    Definition Classes
    ThrownExpectationsStandardResults
  48. def skipped[R](r: ⇒ R)(implicit arg0: AsResult[R]): Skipped

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

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  50. lazy val success: Success

    Definition Classes
    ThrownExpectationsStandardResults
  51. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Definition Classes
    ShouldExpectations
  54. def toString(): String

    Definition Classes
    AnyRef → Any
  55. def todo: Pending

    Definition Classes
    ThrownExpectationsStandardResults
  56. final def wait(): Unit

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

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

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

    Definition Classes
    StandardResults

Inherited from ShouldExpectations

Inherited from ThrownExpectations

Inherited from ScopedExpectations

Inherited from StandardMatchResults

Inherited from StandardResults

Inherited from Expectations

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped