FuturezMatchers

This trait is for transforming matchers of values to matchers of scalaz.concurrent.Future

Companion:
object
trait ExpectationsCreation
trait MatchResultStackTrace
class Object
trait Matchable
class Any
object FuturezMatchers.type

Type members

Classlikes

implicit class FuturezMatchable[T](m: Matcher[T])(implicit ee: ExecutionEnv)

add an attempt method to any matcher Matcher[T] so that it can be transformed into a Matcher[scalaz.concurrent.Future[T]]

add an attempt method to any matcher Matcher[T] so that it can be transformed into a Matcher[scalaz.concurrent.Future[T]]

implicit class futurezAsResult[T](f: Future[T])(implicit ee: ExecutionEnv, asResult: AsResult[T])

when a Future contains a result, it can be attempted to return this result

when a Future contains a result, it can be attempted to return this result

Value members

Inherited methods

def attempt[T](m: Matcher[T])(timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]
Inherited from:
FuturezBaseMatchers
def attempt[T](m: Matcher[T])(retries: Int)(implicit ee: ExecutionEnv): Matcher[Future[T]]
Inherited from:
FuturezBaseMatchers
def attempt[T](m: Matcher[T])(retries: Int, timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]
Inherited from:
FuturezBaseMatchers
def attempt[T](m: Matcher[T])(implicit ee: ExecutionEnv): Matcher[Future[T]]
Inherited from:
FuturezBaseMatchers
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

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

Inherited from:
ExpectationsCreation
protected def checkResultFailure(r: => 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

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

an Expectable with a description function

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

an Expectable with a description function

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

an Expectable with a description

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

an Expectable

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

an Expectable with a function to show the element T

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

Inherited from:
ExpectationsCreation
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]
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

Inherited from:
MatchResultStackTrace

Implicits

Implicits

final implicit def FuturezMatchable[T](m: Matcher[T])(implicit ee: ExecutionEnv): FuturezMatchable[T]

add an attempt method to any matcher Matcher[T] so that it can be transformed into a Matcher[scalaz.concurrent.Future[T]]

add an attempt method to any matcher Matcher[T] so that it can be transformed into a Matcher[scalaz.concurrent.Future[T]]

final implicit def futurezAsResult[T](f: Future[T])(implicit ee: ExecutionEnv, asResult: AsResult[T]): futurezAsResult[T]

when a Future contains a result, it can be attempted to return this result

when a Future contains a result, it can be attempted to return this result