org.specs2.matcher

MustThrownExpectations

trait MustThrownExpectations extends MustThrownExpectables with StandardResults with StandardMatchResults

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

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MustThrownExpectations
  2. MustThrownExpectables
  3. MustThrownExpectations1
  4. StandardMatchResults
  5. StandardResults
  6. MustThrownExpectationsCreation
  7. ThrownExpectationsCreation
  8. ThrownExpectables
  9. MustExpectations
  10. TypedEqual
  11. ExpectationsDescription
  12. MustExpectations1
  13. MustExpectationsCreation
  14. ExpectationsCreation
  15. MatchResultStackTrace
  16. AnyRef
  17. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Descriptible[T] extends AnyRef

    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef

    Definition Classes
    ExpectationsDescription
  3. class TypedEqualExpectation[T] extends AnyRef

    Definition Classes
    TypedEqual

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 akaMust[T](tm: Expectable[T]): MustExpectable[T]

  7. def anError: Error

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

    Definition Classes
    Any
  9. 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
  10. 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
  11. 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
  12. def clone(): AnyRef

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

    Definition Classes
    ExpectationsCreation
  16. def createExpectable[T](t: ⇒ T): Expectable[T]

    returns

    an Expectable

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

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ThrownExpectablesExpectationsCreation
  18. def createMustExpectable[T](t: ⇒ T): MustExpectable[T]

    Attributes
    protected
    Definition Classes
    MustThrownExpectationsCreation → MustExpectationsCreation
  19. implicit def describe[T](t: ⇒ T): Descriptible[T]

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    ExpectationsDescription
  20. implicit def describeExpectation(description: String): ExpectationDescription

    Definition Classes
    ExpectationsDescription
  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(message: String): Failure

    Definition Classes
    StandardResults
  25. def failure: Failure

    Definition Classes
    StandardResults
  26. def finalize(): Unit

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

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

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

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

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

    Definition Classes
    StandardMatchResults
  32. 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
  33. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    StandardResults
  39. def pending: Pending

    Definition Classes
    StandardResults
  40. def pending(message: String): Pending

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

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  42. 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
  43. def skipped[R](r: ⇒ R)(implicit arg0: AsResult[R]): Skipped

    Definition Classes
    StandardResults
  44. def skipped: Skipped

    Definition Classes
    StandardResults
  45. def skipped(message: String): Skipped

    Definition Classes
    StandardResults
  46. def success: Success

    Definition Classes
    StandardResults
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. implicit def theBlock(t: ⇒ Nothing): MustExpectable[Nothing]

    Definition Classes
    MustExpectations
  49. implicit def theValue[T](t: ⇒ T): MustExpectable[T]

    Definition Classes
    MustExpectations1
  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. def todo: Pending

    Definition Classes
    StandardResults
  52. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[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
    TypedEqual
  53. final def wait(): Unit

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

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

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

    Definition Classes
    StandardResults

Inherited from MustThrownExpectables

Inherited from MustThrownExpectations1

Inherited from StandardMatchResults

Inherited from StandardResults

Inherited from ThrownExpectables

Inherited from MustExpectations

Inherited from TypedEqual

Inherited from ExpectationsDescription

Inherited from MustExpectations1

Inherited from MustExpectationsCreation

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from AnyRef

Inherited from Any

Ungrouped