MatchPending

org.specs2.matcher.MatchPending
case class MatchPending[T] extends MatchResult[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(matcher: Matcher[T]): MatchResult[T]

apply a Matcher to the expectable contained in that MatchResult. Depending on the exact type of the MatchResult, that logic may vary.

apply a Matcher to the expectable contained in that MatchResult. Depending on the exact type of the MatchResult, that logic may vary.

Note: this method is marked as "private" to give a clue to the user when semi-column inference fails to apply.

For example in that case:

"string" must not beNull 1 must_== 1

There will be a compilation error as if the apply method was used between the first and second line: ("string" must not beNull).apply(1)

For a more detailed explanation, see: http://bit.ly/12STc95

Attributes

override def mute: MatchResult[T]

Attributes

Returns

the MatchResult with no messages

Definition Classes

Attributes

Returns

the negation of this result

override def orThrow: MatchPending[T]

Attributes

Definition Classes
def setExpectable[S >: T](e: Expectable[S]): MatchResult[S]

set a different expectable for this matcher

set a different expectable for this matcher

Attributes

override def toResult: Pending

Attributes

Definition Classes
MatchResult -> ResultLike
override def updateMessage(f: String => String): MatchResult[T]

update the failure message of this match result

update the failure message of this match result

Attributes

Definition Classes

Inherited methods

alias for the apply method, to be used outside specs2

alias for the apply method, to be used outside specs2

Attributes

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

Attributes

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

apply the matcher

apply the matcher

Attributes

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)

Attributes

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

apply the matcher

apply the matcher

Attributes

Inherited from:
MatchResult
def isSuccess: Boolean

Attributes

Inherited from:
MatchResult

Attributes

Inherited from:
MatchResult
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

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

Attributes

Inherited from:
MatchResult