MustThrownExpectations

org.specs2.matcher.MustThrownExpectations
See theMustThrownExpectations companion object

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

Attributes

Companion
object
Graph
Supertypes
trait StandardResults
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Inherited classlikes

class Descriptible[T](value: => T)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
class ExpectationDescription(description: String)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
class TypedEqualExpectation[T](t: => T)

Attributes

Inherited from:
TypedEqual
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def anError: Error

Attributes

Inherited from:
StandardResults
protected 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

Inherited from:
ExpectationsCreation
override protected 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

Definition Classes
Inherited from:
ThrownExpectables
override protected 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

Definition Classes
Inherited from:
ThrownExpectables
override def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Definition Classes
Inherited from:
ThrownExpectables
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
override def createExpectableWithShowAs[T](t: => T, show: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Definition Classes
Inherited from:
ThrownExpectables
override protected def createMustExpectable[T](t: => T): MustExpectable[T]

Attributes

Definition Classes
MustThrownExpectationsCreation -> MustExpectationsCreation
Inherited from:
MustThrownExpectationsCreation
def done: Success

Attributes

Inherited from:
StandardResults
def failure(message: String): Failure

Attributes

Inherited from:
StandardResults
def failure: Failure

Attributes

Inherited from:
StandardResults
def ko(m: String): MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
protected 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

Inherited from:
ExpectationsCreation
def ok(m: String): MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
def pending[R : AsResult](r: => R): Pending

Attributes

Inherited from:
StandardResults
def pending: Pending

Attributes

Inherited from:
StandardResults
def pending(message: String): Pending

Attributes

Inherited from:
StandardResults
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the match result without any side-effects

Inherited from:
ExpectationsCreation
protected 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

Inherited from:
MatchResultStackTrace
def skipped[R : AsResult](r: => R): Skipped

Attributes

Inherited from:
StandardResults
def skipped: Skipped

Attributes

Inherited from:
StandardResults
def skipped(message: String): Skipped

Attributes

Inherited from:
StandardResults
def success: Success

Attributes

Inherited from:
StandardResults
def todo: Pending

Attributes

Inherited from:
StandardResults
def wontdo: Success

Attributes

Inherited from:
StandardResults

Inherited fields

lazy val ko: MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults
lazy val ok: MatchResult[Any]

Attributes

Inherited from:
StandardMatchResults

Implicits

Inherited implicits

implicit override def akaMust[T](tm: Expectable[T]): MustExpectable[T]

Attributes

Definition Classes
Inherited from:
MustThrownExpectables
implicit def describe[T](t: => T): Descriptible[T]

describe a value with the aka method

describe a value with the aka method

Attributes

Inherited from:
ExpectationsDescription
implicit def describeExpectation(description: String): ExpectationDescription

Attributes

Inherited from:
ExpectationsDescription
implicit def theBlock(t: => Nothing): MustExpectable[Nothing]

Attributes

Inherited from:
MustExpectations
implicit def theValue[T](t: => T): MustExpectable[T]

Attributes

Inherited from:
MustExpectations1 (hidden)
implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]

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

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

Attributes

Inherited from:
TypedEqual