Trait/Object

org.specs2.matcher

MustThrownExpectations

Related Docs: object MustThrownExpectations | package matcher

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef

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

    Permalink
    Definition Classes
    TypedEqual

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

    Permalink
  5. def anError: Error

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

    Permalink
    Definition Classes
    Any
  7. 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
    ExpectationsCreation
  8. 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
    ThrownExpectablesExpectationsCreation
  9. 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
    ThrownExpectablesExpectationsCreation
  10. def clone(): AnyRef

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description

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

    Permalink

    returns

    an Expectable

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

    Permalink

    returns

    an Expectable with a function to show the element T

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

    Permalink
    Attributes
    protected
    Definition Classes
    MustThrownExpectationsCreation → MustExpectationsCreation
  17. 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
    ExpectationsDescription
  18. implicit def describeExpectation(description: String): ExpectationDescription

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

    Permalink
    Definition Classes
    StandardResults
  23. def failure: Failure

    Permalink
    Definition Classes
    StandardResults
  24. def finalize(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    StandardMatchResults
  30. 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
    ExpectationsCreation
  31. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    StandardResults
  37. def pending: Pending

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

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

    Permalink

    returns

    the match result without any side-effects

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

    Permalink
    Definition Classes
    StandardResults
  42. def skipped: Skipped

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

    Permalink
    Definition Classes
    StandardResults
  44. def success: Success

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

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

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

    Permalink
    Definition Classes
    MustExpectations1
  48. def toString(): String

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

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

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

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

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

    Permalink
    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