MatchFailure

case class MatchFailure[T] extends MatchResult[T]
Companion:
object
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(matcher: Matcher[T]): MatchResult[T]
def koMessage: String
override def mute: MatchFailure[T]
Definition Classes
def okMessage: String
override def orSkip: MatchFailure[T]
Definition Classes
override def orThrow: MatchFailure[T]
Definition Classes
def setExpectable[S >: T](e: Expectable[S]): MatchResult[S]
override def toResult: Failure
Definition Classes
MatchResult -> ResultLike
override def updateMessage(f: String => String): MatchResult[T]
Definition Classes

Inherited methods

alias for the apply method, to be used outside specs2

alias for the apply method, to be used outside specs2

Inherited from:
MatchResult
def be[S >: T <: AnyRef](s: S): MatchResult[S]
Inherited from:
MatchResult
def be(m: Matcher[T]): MatchResult[T]

apply the matcher

apply the matcher

Inherited from:
MatchResult
def filterTrace(f: List[StackTraceElement] => List[StackTraceElement]): MatchResult[T]

filter the trace of this result (if there is one)

filter the trace of this result (if there is one)

Inherited from:
MatchResult
def have(m: Matcher[T]): MatchResult[T]

apply the matcher

apply the matcher

Inherited from:
MatchResult
def isSuccess: Boolean
Inherited from:
MatchResult
def message: String
Inherited from:
MatchResult
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def setMessage(message: String): MatchResult[T]

set a new failure message on this match result

set a new failure message on this match result

Inherited from:
MatchResult

Concrete fields

lazy val exception: Exception

an exception having the same stacktrace

an exception having the same stacktrace